diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 1fef5d9f6..c8b347916 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -552,8 +552,7 @@ def _parse_constraints_for_virtualenv( {macos|windows}.setup_python function. """ assert len(dependency_constraint_flags) in {0, 2} - packages = ["pip", "setuptools", "wheel"] - constraints_dict = {package: "embed" for package in packages} + constraints_dict = {"pip": "embed"} if len(dependency_constraint_flags) == 2: assert dependency_constraint_flags[0] == "-c" constraint_path = Path(dependency_constraint_flags[1]) @@ -612,6 +611,8 @@ def virtualenv( virtualenv_app, "--activators=", "--no-periodic-update", + "--no-setuptools", + "--no-wheel", *additional_flags, "--python", python,