Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/pkgs/sagemath-standard/constraints_pkgs.txt
4081 views
1
# This "constraints file" can be used for forcing pip
2
# (and any tools that delegate to pip, such as pypa/build)
3
# to install the dependencies of sagemath-standard that are
4
# distribution packages included in the SageMath monorepository
5
# only from their source trees in SAGE_ROOT/pkgs/
6
# instead of from PyPI.
7
#
8
# Example:
9
#
10
# [alice@localhost sage]$ ./bootstrap
11
# [alice@localhost sage]$ ./configure
12
# [alice@localhost sage]$ export MAKE="make -j16" SAGE_NUM_THREADS=16
13
# [alice@localhost sage]$ make all-sage-local
14
# [alice@localhost sage]$ export PIP_CONSTRAINT="$(pwd)/pkgs/sagemath-standard/constraints_pkgs.txt"
15
# [alice@localhost sage]$ ./sage -sh -c 'python3 -m build -v -v pkgs/sagemath-standard'
16
#
17
# Reference on the format:
18
# https://pip.pypa.io/en/stable/user_guide/#constraints-files
19
#
20
sage_conf @ file://${SAGE_ROOT}/pkgs/sage-conf
21
sage_setup @ file://${SAGE_ROOT}/pkgs/sage-setup
22
23