Closed mgorny closed 2 months ago
FWICS, this could be resolved by adding --no-build-isolation
, i.e.:
diff --git a/tests/conftest.py b/tests/conftest.py
index 35101cef2..5934e9f95 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -395,6 +395,7 @@ def pip_editable_parts(
"-m",
"pip",
"install",
+ "--no-build-isolation",
"--target",
pip_self_install_path,
"-e",
Does this look like an acceptable solution?
As pip's build dependencies (setuptools and wheel) are included in tests/requirements.txt
, adding --no-build-isolation
seems fine. Feel free to file a PR.
Description
Up to 24.0, it was possible to run most of the test suite without Internet access, with only a handful of tests failing. However, in 24.1 a large number of tests (776, to be precise) are throwing errors when run in an environment without Internet access.
FWICS the problem stems from
pip_editable_parts
fixture that attempts to fetch and installsetuptools
:Expected behavior
(Most of the) tests working offline again.
pip version
24.1
Python version
3.11.9, 3.12.4
OS
Gentoo Linux amd64
How to Reproduce
unshare -n
).pytest
Output
No response
Code of Conduct