-
-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-37434: Document building from the monorepo using `PIP_CONSTRAINT=$…
…SAGE_ROOT/constraints_pkgs.txt` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes #1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> This is aimed at the intermediate level, for users who wish to build a set of distribution packages as supplied in `pkgs/` but without using the wheelhouse infrastructure of Sage-the-distribution. Documentation included in the files. It can also be tested using new tox environments defined in `pkgs/sagemath-standard/tox.ini`, and is tested on GH Actions: https://github.com/mkoeppe/sage/actions/workflows/ci-linux- incremental.yml?query=branch%3Aconstraints_pkgs - this also provides the missing automatic test for the **sagemath- standard** distribution built out of `pkgs/sagemath-standard/` Marked as critical because it is hoped to ease the adoption of modularized distribution packages by downstream packagers. <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - Depends on #38515 (merged here) - Depends on #38500 (merged here) URL: #37434 Reported by: Matthias Köppe Reviewer(s): François Bissey, Kwankyu Lee, Matthias Köppe
- Loading branch information
Showing
28 changed files
with
258 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This "constraints file" can be used for forcing pip | ||
# (and any tools that delegate to pip, such as pypa/build) | ||
# to install the distribution packages included in | ||
# the SageMath monorepository only from their source trees | ||
# in SAGE_ROOT/pkgs/ instead of from PyPI. | ||
# | ||
# Example: Building a sagemath-standard wheel | ||
# | ||
# [alice@localhost sage]$ ./bootstrap | ||
# [alice@localhost sage]$ ./configure | ||
# [alice@localhost sage]$ export MAKE="make -j16" SAGE_NUM_THREADS=16 | ||
# [alice@localhost sage]$ make all-sage-local | ||
# [alice@localhost sage]$ export PIP_CONSTRAINT="$(pwd)/constraints_pkgs.txt" | ||
# [alice@localhost sage]$ ./sage -sh -c 'python3 -m build -v -v pkgs/sagemath-standard' | ||
# | ||
# Non-example: Installing the built wheel using the same | ||
# constraints file will fail because sagemath-standard is one | ||
# of the distribution packages listed below. It will conflict | ||
# with the built wheel for sagemath-standard! | ||
# Use "pkgs/sagemath-standard/constraints_pkgs.txt" instead. | ||
|
||
# Reference on the format: | ||
# https://pip.pypa.io/en/stable/user_guide/#constraints-files | ||
# | ||
sage_conf @ file://${SAGE_ROOT}/pkgs/sage-conf | ||
sage_docbuild @ file://${SAGE_ROOT}/pkgs/sage-docbuild | ||
sage_setup @ file://${SAGE_ROOT}/pkgs/sage-setup | ||
sage_sws2rst @ file://${SAGE_ROOT}/pkgs/sage-sws2rst | ||
sagemath-bliss @ file://${SAGE_ROOT}/pkgs/sagemath-bliss | ||
sagemath-categories @ file://${SAGE_ROOT}/pkgs/sagemath-categories | ||
sagemath-coxeter3 @ file://${SAGE_ROOT}/pkgs/sagemath-coxeter3 | ||
sagemath-environment @ file://${SAGE_ROOT}/pkgs/sagemath-environment | ||
sagemath-mcqd @ file://${SAGE_ROOT}/pkgs/sagemath-mcqd | ||
sagemath-meataxe @ file://${SAGE_ROOT}/pkgs/sagemath-meataxe | ||
sagemath-objects @ file://${SAGE_ROOT}/pkgs/sagemath-objects | ||
sagemath-repl @ file://${SAGE_ROOT}/pkgs/sagemath-repl | ||
sagemath-sirocco @ file://${SAGE_ROOT}/pkgs/sagemath-sirocco | ||
sagemath-standard @ file://${SAGE_ROOT}/pkgs/sagemath-standard | ||
sagemath-tdlib @ file://${SAGE_ROOT}/pkgs/sagemath-tdlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This "constraints file" can be used for forcing pip | ||
# (and any tools that delegate to pip, such as pypa/build) | ||
# to install the dependencies of sagemath-standard that are | ||
# distribution packages included in the SageMath monorepository | ||
# only from their source trees in SAGE_ROOT/pkgs/ | ||
# instead of from PyPI. | ||
# | ||
# Example: | ||
# | ||
# [alice@localhost sage]$ ./bootstrap | ||
# [alice@localhost sage]$ ./configure | ||
# [alice@localhost sage]$ export MAKE="make -j16" SAGE_NUM_THREADS=16 | ||
# [alice@localhost sage]$ make all-sage-local | ||
# [alice@localhost sage]$ export PIP_CONSTRAINT="$(pwd)/pkgs/sagemath-standard/constraints_pkgs.txt" | ||
# [alice@localhost sage]$ ./sage -sh -c 'python3 -m build -v -v pkgs/sagemath-standard' | ||
# | ||
# Reference on the format: | ||
# https://pip.pypa.io/en/stable/user_guide/#constraints-files | ||
# | ||
sage_conf @ file://${SAGE_ROOT}/pkgs/sage-conf | ||
sage_setup @ file://${SAGE_ROOT}/pkgs/sage-setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.