Skip to content

Commit

Permalink
fix: do not pre-seed setuptools / wheel in virtual environment
Browse files Browse the repository at this point in the history
Since 9879937, setuptools & wheel are not pinned/installed anymore.
We should not pre-seed the virtual environment with those either.
  • Loading branch information
mayeut committed May 10, 2024
1 parent aca1b22 commit bdc6b16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cibuildwheel/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -612,6 +611,8 @@ def virtualenv(
virtualenv_app,
"--activators=",
"--no-periodic-update",
"--no-setuptools",
"--no-wheel",
*additional_flags,
"--python",
python,
Expand Down

0 comments on commit bdc6b16

Please sign in to comment.