Skip to content

Commit 56cfd42

Browse files
committed
Fixed path errors when building windows wheel.
1 parent 19ef2f4 commit 56cfd42

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ jobs:
565565
python -m pip install --upgrade pip
566566
python -m pip install delvewheel
567567
568-
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: python "{project}/maintenance_scripts/repair_windows_wheel.py" "{dest_dir}" "{wheel}"
568+
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: python maintenance_scripts/repair_windows_wheel.py "{dest_dir}" "{wheel}"
569569

570570
# 注意:CIBW_BEFORE_BUILD(通用)在所有平台都提供了平台专用版本时
571571
# 永远不会执行(平台专用变体会覆盖通用变体),已移除死代码。

maintenance_scripts/repair_windows_wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
wheel has no external dependencies), copy the built wheel as-is so that
1111
cibuildwheel always finds something in dest_dir.
1212
13-
Usage (called from CIBW_REPAIR_WHEEL_COMMAND_WINDOWS):
14-
python repair_windows_wheel.py <dest_dir> <wheel>
13+
Usage (called from CIBW_REPAIR_WHEEL_COMMAND_WINDOWS, cwd = project root):
14+
python maintenance_scripts/repair_windows_wheel.py <dest_dir> <wheel>
1515
"""
1616
from __future__ import annotations
1717

tests/test_build_release_boundaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_macos_wheel_repair_fails_instead_of_copying_unrepaired_wheel():
2929
assert 'CIBW_TARGET_OSX_arm64: "11.0"' in source
3030
assert "build_macos_ci_libomp.sh" in source
3131
assert "repair_windows_wheel.py" in source
32-
assert 'CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: python "{project}/maintenance_scripts/repair_windows_wheel.py"' in source
32+
assert 'CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: python maintenance_scripts/repair_windows_wheel.py' in source
3333
repair_script = (repo_root / "maintenance_scripts" / "repair_windows_wheel.py").read_text()
3434
assert "delvewheel did not emit a wheel; copying built wheel as-is" in repair_script
3535
assert "bundled OpenMP DLLs" in repair_script

0 commit comments

Comments
 (0)