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 df7e3ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cibuildwheel/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -612,6 +612,8 @@ def virtualenv(
virtualenv_app,
"--activators=",
"--no-periodic-update",
"--no-setuptools",
"--no-wheel",
*additional_flags,
"--python",
python,
Expand Down

0 comments on commit df7e3ad

Please sign in to comment.