Skip to content

Commit 2894a3e

Browse files
committed
TOX: Control pip via environment variables
1 parent 30f324b commit 2894a3e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tox.ini

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ ARCH =
4848
[testenv]
4949
description = Pytest with coverage
5050
labels = test
51-
install_command =
52-
python -I -m pip install -v \
53-
dev: --only-binary numpy,scipy,h5py \
54-
!dev: --only-binary numpy,scipy,h5py,pillow,matplotlib \
55-
pre,dev: --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
56-
{opts} {packages}
5751
pip_pre =
5852
pre,dev: true
5953
pass_env =
@@ -72,6 +66,9 @@ pass_env =
7266
CLICOLOR_FORCE
7367
set_env =
7468
py313: PYTHON_GIL=0
69+
dev: PIP_ONLY_BINARY=numpy,scipy,h5py
70+
!dev: PIP_ONLY_BINARY=numpy,scipy,h5py,pillow,matplotlib
71+
pre,dev: PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
7572
extras = test
7673
deps =
7774
# General minimum dependencies: pin based on API usage
@@ -118,7 +115,6 @@ description = Install and verify import succeeds
118115
labels = test
119116
deps =
120117
extras =
121-
install_command = python -I -m pip install {opts} {packages}
122118
commands =
123119
python -c "import nibabel; print(nibabel.__version__)"
124120

0 commit comments

Comments
 (0)