@@ -15,8 +15,10 @@ all: sage
15
15
16
16
# # We poison all environment variables that have paths to the sage source and build directories,
17
17
# # but keep the directories below SAGE_LOCAL intact.
18
- # # In this way we make sure that all of the sagelib build's source/build paths are communicated through
19
- # # the current directory (for the source tree) and --build-base.
18
+ # # In this way we make sure that all of the sagelib build's source paths are communicated through
19
+ # # the current directory (for the source tree).
20
+ # # Building takes places in the build/ subdirectory.
21
+ # # The environment variable SAGE_CYTHONIZED needs to point to build/cythonized.
20
22
# #
21
23
# # As a special exception, we feed SAGE_PKGS. This is needed by src/sage_setup/optional_extension.py
22
24
# # via src/sage/misc/package.py. Hoping that #20382 will make this unnecessary.
@@ -36,14 +38,14 @@ sage:
36
38
SAGE_DOC_SRC=/doesnotexist \
37
39
SAGE_SCRIPTS_DIR=/doesnotexist \
38
40
SAGE_BUILD_DIR=/doesnotexist \
39
- SAGE_CYTHONIZED=/doesnotexist \
40
41
SAGE_PKGS=$(abs_top_srcdir ) /build/pkgs \
41
- && python -u setup.py build --build-base=$(abs_builddir ) /build-sagelib install)
42
+ SAGE_CYTHONIZED=$(abs_builddir ) /build/cythonized \
43
+ && python -u setup.py build install)
42
44
43
45
clean :
44
46
@echo " Deleting Sage library build artifacts..."
45
- rm -rf c_lib build .cython_version # from old sage versions
46
- rm -rf build-sagelib
47
+ rm -rf c_lib .cython_version # from old sage versions
48
+ rm -rf build
47
49
find . -name ' *.pyc' | xargs rm -f
48
50
rm -f sage/libs/pari/auto_*
49
51
rm -rf sage/ext/interpreters
0 commit comments