Changes between Version 36 and Version 44 of Ticket #21480


Ignore:
Timestamp:
09/15/16 18:44:01 (3 years ago)
Author:
mkoeppe
Comment:

I've changed the description of this ticket, as it has changed its focus. Ready for review.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21480

    • Property Status changed from needs_work to needs_review
    • Property Summary changed from Keep src/ clean by using --build-base when building sagelib to Make sagelib setup.sh self-contained, independent of SAGE_ROOT, and handle --build-base
    • Property Commit changed from a854831e3274b69eadc52eb4642b8c0bd221a391 to d829eb435729cf3280a5206d005bffef8e1dfd52
  • Ticket #21480 – Description

    v36 v44  
    1 Currently, building sagelib creates the `src/build` directory, with subdirectories `cython_debug`, `cythonized`, `lib.UNAME`, `temp.UNAME`.
     1This 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`).
    26
    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`
     7This ticket is meant as:
     8 - preparation for VPATH builds of sage-the-distribution (#21469)
     9 - working towards the goal of making `sagelib` pip-installable
    410
    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. . . . . . .
    812
    913Some possibly useful information: