From df7e3addfe7ba4c7a12dd452663a9561718c2ff7 Mon Sep 17 00:00:00 2001 From: mayeut Date: Fri, 10 May 2024 10:28:35 +0200 Subject: [PATCH] fix: do not pre-seed setuptools / wheel in virtual environment Since https://github.com/pypa/cibuildwheel/commit/9879937c6374b3fa6c29a578be3170751d61b80b, setuptools & wheel are not pinned/installed anymore. We should not pre-seed the virtual environment with those either. --- cibuildwheel/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 1fef5d9f6..36932e59b 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -552,7 +552,7 @@ def _parse_constraints_for_virtualenv( {macos|windows}.setup_python function. """ assert len(dependency_constraint_flags) in {0, 2} - packages = ["pip", "setuptools", "wheel"] + packages = ["pip"] constraints_dict = {package: "embed" for package in packages} if len(dependency_constraint_flags) == 2: assert dependency_constraint_flags[0] == "-c" @@ -612,6 +612,8 @@ def virtualenv( virtualenv_app, "--activators=", "--no-periodic-update", + "--no-setuptools", + "--no-wheel", *additional_flags, "--python", python,