# First pip-install tox:1#2# ./sage -pip install tox3#4# To build and test in the tox environment:5#6# ./sage -sh -c '(cd pkgs/sage-setup && tox -e sagepython)'7#8# To test interactively:9#10# pkgs/sage-setup/.tox/sagepython/bin/python11#12[tox]1314requires =15# Because of https://github.com/tox-dev/tox/issues/3238, need <4.14.116tox<4.14.11718[testenv]19deps = -rrequirements.txt2021setenv =22# Sage scripts such as sage-runtests like to use $HOME/.sage23HOME={envdir}2425allowlist_externals =26bash2728commands =29# Beware of the treacherous non-src layout.30python -c 'import sys; "" in sys.path and sys.path.remove(""); import sage_setup; import sage_setup.find'3132# TODO: Test importing sage_setup.library_order -- when that can handle missing pkgconfig libraries...33# TODO: Test more modules -- when the dependency on sage.env has been removed...3435[testenv:sagepython]36passenv =37SAGE_VENV3839basepython = {env:SAGE_VENV}/bin/python3404142