Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 64b212c

Browse files
author
Matthias Koeppe
committedJul 26, 2022
pkgs/sagemath-*/tox.ini: Make sagepython-norequirements actually use sage python
1 parent 52e8c41 commit 64b212c

File tree

5 files changed

+29
-18
lines changed

5 files changed

+29
-18
lines changed
 

‎pkgs/sagemath-categories/tox.ini

+7-5
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ setenv =
1919
HOME={envdir}
2020

2121
passenv =
22-
SAGE_NUM_THREADS
23-
SAGE_NUM_THREADS_PARALLEL
22+
# Parallel build
23+
SAGE_NUM_THREADS
24+
SAGE_NUM_THREADS_PARALLEL
25+
# SAGE_VENV only for referring to the basepython
26+
sagepython: SAGE_VENV
2427

2528
whitelist_externals =
2629
bash
2730

28-
2931
commands =
3032
# Beware of the treacherous non-src layout. "./sage/" shadows the install sage package.
3133
{envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.cpython.builtin_types, sage.cpython.cython_metaclass, sage.cpython.debug, sage.structure.all, sage.categories.all'
@@ -36,7 +38,7 @@ commands =
3638
bash -c 'cd bin && SAGE_SRC=$(python -c "from sage.env import SAGE_SRC; print(SAGE_SRC)") && sage-runtests --environment=sage.all__sagemath_categories --optional=sage $SAGE_SRC/sage/structure || echo "(lots of doctest failures are expected)"'
3739

3840
[testenv:sagepython]
39-
passenv =
40-
SAGE_VENV
41+
basepython = {env:SAGE_VENV}/bin/python3
4142

43+
[testenv:sagepython-norequirements]
4244
basepython = {env:SAGE_VENV}/bin/python3

‎pkgs/sagemath-environment/tox.ini

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ setenv =
2121
HOME={envdir}
2222

2323
passenv =
24-
SAGE_NUM_THREADS
25-
SAGE_NUM_THREADS_PARALLEL
24+
# Parallel build
25+
SAGE_NUM_THREADS
26+
SAGE_NUM_THREADS_PARALLEL
27+
# SAGE_VENV only for referring to the basepython
28+
sagepython: SAGE_VENV
2629

2730
whitelist_externals =
2831
bash
@@ -32,7 +35,7 @@ commands =
3235
{envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); from sage.features.all import all_features; print(sorted(all_features(), key=lambda x: x.name)); import sage.misc.package'
3336

3437
[testenv:sagepython]
35-
passenv =
36-
SAGE_VENV
38+
basepython = {env:SAGE_VENV}/bin/python3
3739

40+
[testenv:sagepython-norequirements]
3841
basepython = {env:SAGE_VENV}/bin/python3

‎pkgs/sagemath-objects/tox.ini

+7-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ setenv =
1919
HOME={envdir}
2020

2121
passenv =
22-
SAGE_NUM_THREADS
23-
SAGE_NUM_THREADS_PARALLEL
22+
# Parallel build
23+
SAGE_NUM_THREADS
24+
SAGE_NUM_THREADS_PARALLEL
25+
# SAGE_VENV only for referring to the basepython
26+
sagepython: SAGE_VENV
2427

2528
whitelist_externals =
2629
bash
@@ -34,7 +37,7 @@ commands =
3437
#bash -c 'cd bin && SAGE_SRC=$(python -c "from sage.env import SAGE_SRC; print(SAGE_SRC)") && sage-runtests --environment=sage.all__sagemath_objects --optional=sage $SAGE_SRC/sage/structure || echo "(lots of doctest failures are expected)"'
3538

3639
[testenv:sagepython]
37-
passenv =
38-
SAGE_VENV
40+
basepython = {env:SAGE_VENV}/bin/python3
3941

42+
[testenv:sagepython-norequirements]
4043
basepython = {env:SAGE_VENV}/bin/python3

‎pkgs/sagemath-repl/tox.ini

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ setenv =
2121
HOME={envdir}
2222

2323
passenv =
24-
SAGE_NUM_THREADS
25-
SAGE_NUM_THREADS_PARALLEL
24+
# Parallel build
25+
SAGE_NUM_THREADS
26+
SAGE_NUM_THREADS_PARALLEL
27+
# SAGE_VENV only for referring to the basepython
28+
sagepython: SAGE_VENV
2629

2730
whitelist_externals =
2831
bash
@@ -34,7 +37,7 @@ commands =
3437
bash -c 'cd bin && SAGE_SRC=$({envpython} -c "from sage.env import SAGE_SRC; print(SAGE_SRC)") && sage-runtests --environment=sage.all__sagemath_repl --optional=sage $SAGE_SRC/sage/repl $SAGE_SRC/sage/doctest $SAGE_SRC/sage/misc/sage_input.py $SAGE_SRC/sage/misc/sage_eval.py || echo "(lots of doctest failures are expected)"'
3538

3639
[testenv:sagepython]
37-
passenv =
38-
SAGE_VENV
40+
basepython = {env:SAGE_VENV}/bin/python3
3941

42+
[testenv:sagepython-norequirements]
4043
basepython = {env:SAGE_VENV}/bin/python3

‎pkgs/sagemath-standard/tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ passenv =
8282
PKG_CONFIG_PATH
8383
# Parallel build
8484
SAGE_NUM_THREADS
85-
# SAGE_VENV only for finding the wheels
85+
# SAGE_VENV only for referring to the basepython or finding the wheels
8686
sagepython, sagewheels: SAGE_VENV
8787
# Location of the wheels (needs to include a PEP 503 compliant
8888
# Simple Repository index, i.e., a subdirectory "simple")

0 commit comments

Comments
 (0)
This repository has been archived.