Changes between Version 36 and Version 44 of Ticket #21480
- Timestamp:
- 09/15/16 18:44:01 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21480
-
Property
Status
changed from
needs_work
toneeds_review
-
Property
Summary
changed from
Keep src/ clean by using --build-base when building sagelib
toMake sagelib setup.sh self-contained, independent of SAGE_ROOT, and handle --build-base
-
Property
Commit
changed from
a854831e3274b69eadc52eb4642b8c0bd221a391
tod829eb435729cf3280a5206d005bffef8e1dfd52
-
Property
Status
changed from
-
Ticket #21480 – Description
v36 v44 1 Currently, building sagelib creates the `src/build` directory, with subdirectories `cython_debug`, `cythonized`, `lib.UNAME`, `temp.UNAME`. 1 This ticket changes the build process of sagelib in the following way: 2 - `src/Makefile` delegates ALL building to `src/setup.sh` 3 - `src/setup.sh` no longer depends on environment variables `$SAGE_ROOT`, `$SAGE_SRC`, `$SAGE_DOC_SRC`, `$SAGE_CYTHONIZED` etc. (to demonstrate this, `Makefile` poisons these environment variables). It still depends on `$SAGE_LOCAL` and environment variables that point below it. 4 - `src/setup.sh` accepts `build --build-base=BUILD-BASE`. This is where building takes place (where subdirectories `cython_debug`, `cythonized`, `lib.UNAME`, `temp.UNAME` are created). The default is the `build` subdirectory (of `src`). 5 - `src/Makefile` sets `--build-base` to the `build-sagelib` subdirectory (of `src`). 2 6 3 In preparation for VPATH builds of sage-the-distribution (#21469), let's keep `src/` clean by using `setup.py --build-base=$SAGE_BUILD_DIR/sagelib` 7 This ticket is meant as: 8 - preparation for VPATH builds of sage-the-distribution (#21469) 9 - working towards the goal of making `sagelib` pip-installable 4 10 5 (`$SAGE_BUILD_DIR` defaults to `$SAGE_ROOT/var/tmp/sage/build/`) 6 7 As a second goal of this ticket, `setup.sh` is put in charge of ALL sagelib building. 11 . . . . . . . 8 12 9 13 Some possibly useful information: