Skip to content

Commit 6fcce38

Browse files
authored
Use --force-reinstall in integration test and skip wheel (#4565)
2 parents 638128c + ea11bac commit 6fcce38

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

newsfragments/4565.misc.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Replace ``pip install -I`` with ``pip install --force-reinstall`` in
2+
integration tests. Additionally, remove ``wheel`` from virtual environment as
3+
it is no longer a build dependency.

setuptools/tests/integration/test_pip_install_sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_install_sdist(package, version, tmp_path, venv_python, setuptools_wheel
137137
# Use a virtualenv to simulate PEP 517 isolation
138138
# but install fresh setuptools wheel to ensure the version under development
139139
env = EXTRA_ENV_VARS.get(package, {})
140-
run([*venv_pip, "install", "wheel", "-I", setuptools_wheel])
140+
run([*venv_pip, "install", "--force-reinstall", setuptools_wheel])
141141
run([*venv_pip, "install", *INSTALL_OPTIONS, sdist], env)
142142

143143
# Execute a simple script to make sure the package was installed correctly

0 commit comments

Comments
 (0)