Skip to content
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1c7088c
Add a default repair wheel command for Windows
agriyakhetarpal May 1, 2026
bfd3970
Install `delvewheel` into Windows build tools
agriyakhetarpal May 1, 2026
a2a857f
Add delvewheel to constraints file
agriyakhetarpal May 1, 2026
81374bb
Regenerate constraints
agriyakhetarpal May 1, 2026
151e4a6
Docs
agriyakhetarpal May 1, 2026
2488482
Suggest how to disable Windows wheel repair
agriyakhetarpal May 1, 2026
222abf5
Add tests
agriyakhetarpal May 1, 2026
4bd8aa7
Run `delvewheel` with verbose mode as default
agriyakhetarpal May 1, 2026
8cfdbf7
Add note about telling delvewheel where to look
agriyakhetarpal May 1, 2026
e9a8272
Partially revert 81374bb8fc43acefed76cb13d761a9e6cf6afa58
agriyakhetarpal May 1, 2026
7d430af
Add `pip` and `uv` cases for build installations
agriyakhetarpal May 1, 2026
d63bfad
Ignore `python-native.dll` for GraalPy
agriyakhetarpal May 1, 2026
233e1ab
Ignore MSVC DLLs, try Windows amd64 graalpy happy
agriyakhetarpal May 1, 2026
ad4913f
Fix last remaining Windows test failure (famous last words?)
agriyakhetarpal May 2, 2026
d3d1230
Merge main
agriyakhetarpal May 6, 2026
2dc4c0f
Update constraints
agriyakhetarpal May 6, 2026
382c962
Drop workaround unneeded with delvewheel v1.12.1
agriyakhetarpal May 6, 2026
1fba476
Update docs/options.md
agriyakhetarpal May 7, 2026
3187f89
Drop `test_delvewheel_default_on_windows`
agriyakhetarpal May 8, 2026
17d38ba
Partially revert "Update constraints"
agriyakhetarpal May 8, 2026
9251d60
Add a test case when repair command is `""`
agriyakhetarpal May 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions cibuildwheel/platforms/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,22 @@ def setup_python(

log.step("Installing build tools...")
match build_frontend:
case "pip":
call(
"pip",
"install",
"--upgrade",
"delvewheel",
*constraint_flags(dependency_constraint),
env=env,
)
case "build":
call(
"pip",
"install",
"--upgrade",
"build[virtualenv]",
"delvewheel",
*constraint_flags(dependency_constraint),
env=env,
)
Expand All @@ -340,9 +350,25 @@ def setup_python(
where_python,
"--upgrade",
"build[virtualenv]",
"delvewheel",
*constraint_flags(dependency_constraint),
env=env,
)
case "uv":
assert uv_path is not None
call(
uv_path,
"pip",
"install",
"--python",
where_python,
"--upgrade",
"delvewheel",
*constraint_flags(dependency_constraint),
env=env,
)
case _:
assert_never(build_frontend)

if python_libs_base:
# Set up the environment for various backends to enable cross-compilation
Expand Down
10 changes: 7 additions & 3 deletions cibuildwheel/resources/constraints-python310.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.5.0
# via -r cibuildwheel/resources/constraints.in
delocate==0.13.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.12.1
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.29.0
Expand All @@ -20,23 +22,25 @@ packaging==26.2
# via
# build
# delocate
pip==26.0.1
pefile==2024.8.26
# via delvewheel
pip==26.1.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.9.6
# via
# python-discovery
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
tomli==2.4.1
# via build
typing-extensions==4.15.0
# via
# delocate
# virtualenv
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
zipp==3.23.1
# via importlib-metadata
10 changes: 7 additions & 3 deletions cibuildwheel/resources/constraints-python311.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.5.0
# via -r cibuildwheel/resources/constraints.in
delocate==0.13.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.12.1
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.29.0
Expand All @@ -18,17 +20,19 @@ packaging==26.2
# via
# build
# delocate
pip==26.0.1
pefile==2024.8.26
# via delvewheel
pip==26.1.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.9.6
# via
# python-discovery
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
typing-extensions==4.15.0
# via delocate
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
10 changes: 7 additions & 3 deletions cibuildwheel/resources/constraints-python312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.5.0
# via -r cibuildwheel/resources/constraints.in
delocate==0.13.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.12.1
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.29.0
Expand All @@ -18,17 +20,19 @@ packaging==26.2
# via
# build
# delocate
pip==26.0.1
pefile==2024.8.26
# via delvewheel
pip==26.1.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.9.6
# via
# python-discovery
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
typing-extensions==4.15.0
# via delocate
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
10 changes: 7 additions & 3 deletions cibuildwheel/resources/constraints-python313.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.5.0
# via -r cibuildwheel/resources/constraints.in
delocate==0.13.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.12.1
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.29.0
Expand All @@ -18,17 +20,19 @@ packaging==26.2
# via
# build
# delocate
pip==26.0.1
pefile==2024.8.26
# via delvewheel
pip==26.1.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.9.6
# via
# python-discovery
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
typing-extensions==4.15.0
# via delocate
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
10 changes: 7 additions & 3 deletions cibuildwheel/resources/constraints-python314.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.5.0
# via -r cibuildwheel/resources/constraints.in
delocate==0.13.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.12.1
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.29.0
Expand All @@ -18,17 +20,19 @@ packaging==26.2
# via
# build
# delocate
pip==26.0.1
pefile==2024.8.26
# via delvewheel
pip==26.1.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.9.6
# via
# python-discovery
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
typing-extensions==4.15.0
# via delocate
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
8 changes: 6 additions & 2 deletions cibuildwheel/resources/constraints-python38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.2.2.post1
# via -r cibuildwheel/resources/constraints.in
delocate==0.12.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.10.0
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.16.1
Expand All @@ -20,6 +22,8 @@ packaging==26.2
# via
# build
# delocate
pefile==2024.8.26
# via delvewheel
pip==25.0.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.3.6
Expand All @@ -28,15 +32,15 @@ platformdirs==4.3.6
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
tomli==2.4.1
# via build
typing-extensions==4.13.2
# via
# delocate
# virtualenv
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
zipp==3.20.2
# via importlib-metadata
8 changes: 6 additions & 2 deletions cibuildwheel/resources/constraints-python39.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.4.4
# via -r cibuildwheel/resources/constraints.in
delocate==0.13.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.12.1
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.19.1
Expand All @@ -20,6 +22,8 @@ packaging==26.2
# via
# build
# delocate
pefile==2024.8.26
# via delvewheel
pip==26.0.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.4.0
Expand All @@ -28,15 +32,15 @@ platformdirs==4.4.0
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
tomli==2.4.1
# via build
typing-extensions==4.15.0
# via
# delocate
# virtualenv
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
zipp==3.23.1
# via importlib-metadata
1 change: 1 addition & 0 deletions cibuildwheel/resources/constraints.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pip
build
delocate
delvewheel
virtualenv
10 changes: 7 additions & 3 deletions cibuildwheel/resources/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build==1.5.0
# via -r cibuildwheel/resources/constraints.in
delocate==0.13.0
# via -r cibuildwheel/resources/constraints.in
delvewheel==1.12.1
# via -r cibuildwheel/resources/constraints.in
distlib==0.4.0
# via virtualenv
filelock==3.29.0
Expand All @@ -18,17 +20,19 @@ packaging==26.2
# via
# build
# delocate
pip==26.0.1
pefile==2024.8.26
# via delvewheel
pip==26.1.1
# via -r cibuildwheel/resources/constraints.in
platformdirs==4.9.6
# via
# python-discovery
# virtualenv
pyproject-hooks==1.2.0
# via build
python-discovery==1.2.2
python-discovery==1.3.0
# via virtualenv
typing-extensions==4.15.0
# via delocate
virtualenv==21.2.1
virtualenv==21.3.1
# via -r cibuildwheel/resources/constraints.in
1 change: 1 addition & 0 deletions cibuildwheel/resources/defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"

[tool.cibuildwheel.windows]
repair-wheel-command = "delvewheel repair -w {dest_dir} -v {wheel}"

[tool.cibuildwheel.android]

Expand Down
Loading
Loading