summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-25 14:54:40 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-25 14:54:40 -0400
commit7de7a340afad244b010f8d4ca81868e65f9f156f (patch)
tree7cf9a636e5f5d0fd049bbc59148813fd14473a9b
parent349b2f8e1b7f7be6cafed723820e87109407a6af (diff)
downloadpython-coveragepy-git-7de7a340afad244b010f8d4ca81868e65f9f156f.tar.gz
build: avoid direct setup.py use
-rw-r--r--tox.ini14
1 files changed, 7 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index ebff5c43..602d7e4b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -34,19 +34,19 @@ setenv =
PYTHONPYCACHEPREFIX=
commands =
- python setup.py --quiet clean develop
-
# Create tests/zipmods.zip
+ python igor.py zip_mods
+
+ # Build the C extension and test with the CTracer
+ python -m pip install -q -e .
+ python igor.py test_with_tracer c {posargs}
+
# Remove the C extension so that we can test the PyTracer
- python igor.py zip_mods remove_extension
+ python igor.py remove_extension
# Test with the PyTracer
python igor.py test_with_tracer py {posargs}
- # Build the C extension and test with the CTracer
- python setup.py --quiet build_ext --inplace
- python igor.py test_with_tracer c {posargs}
-
[testenv:anypy]
# $set_env.py: COVERAGE_ANYPY - The custom Python for "tox -e anypy"
# For running against my own builds of CPython, or any other specific Python.