-
-
Notifications
You must be signed in to change notification settings - Fork 836
Document building from the monorepo using PIP_CONSTRAINT=$SAGE_ROOT/constraints_pkgs.txt
#37434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c4d3b66
Add noexcept in matroids and set for cython 3.0.11 compatibility
kiwifb 264b913
constraints_pkgs.txt, pkgs/sagemath-standard/constraints_pkgs.txt: New
mkoeppe 9d5322c
.github/workflows/ci-linux.yml: Test sagelib-tox-sagepython-constrain…
mkoeppe 7598576
.github/workflows/ci-linux-incremental.yml: Test constraints_pkgs-nor…
mkoeppe f8f7b0f
.github/workflows/ci-linux.yml: Fixup
mkoeppe 114b53c
make SPKG-tox-...: Do set the sage environment
mkoeppe 31d6a6b
Add some `except`s (#1)
gmou3 c52ad79
src/pyproject.toml: Add missing build dep jinja2
mkoeppe 4eff0a0
Merge branch 'src_pyproject_toml_jinja2' into constraints_pkgs
mkoeppe b3fd6af
pkgs/sagemath-standard/constraints_pkgs.txt: More verbosity in example
mkoeppe 61ace88
constraints_pkgs.txt: More verbosity in example
mkoeppe b0a6880
Merge commit 'refs/pull/38500/head' of https://github.com/sagemath/sa…
mkoeppe df5e38a
.github/workflows/ci-linux-incremental.yml: Update, reduce 'constrain…
mkoeppe b7ff066
.github/workflows/ci-linux[-incremental].yml: Use 'targets-pre' for '…
mkoeppe bfb531e
.github/workflows/ci-linux.yml: Build all-sage-local for 'constraints…
mkoeppe bf00218
.github/workflows/ci-linux[-incremental].yml: Ensure tox is installed…
mkoeppe 02f6e88
pkgs/sagemath-standard/README.rst: Add link to https://github.com/sag…
mkoeppe 524dc88
pkgs/sagemath-standard/README.rst: Update copyright year; no longer '…
mkoeppe 368e9f6
pkgs/sagemath-standard/constraints_pkgs.txt: Make explanation more sp…
mkoeppe 4204f2d
pkgs/sagemath-standard/constraints_pkgs.txt: Make explanation more sp…
mkoeppe 3ab2a18
pkgs/sagemath-standard/constraints_pkgs.txt: Change to just 'Example:'
mkoeppe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.