Skip to content

Commit 5828252

Browse files
committed
[Debug] windows
Signed-off-by: Cristian Le <[email protected]>
1 parent 9f4a73a commit 5828252

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

tests/packages/repair_wheel/python/repair_wheel/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
def run() -> None:
99
exe_path = Path(__file__).parent
1010
exe_path = next((exe_path / "bin").glob("main*"))
11+
print(exe_path)
1112
sys.exit(subprocess.call([str(exe_path), *sys.argv[2:]]))
1213

1314

tests/test_repair_wheel.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import os
12
import platform
23
import shutil
34
from pathlib import Path
45

56
import pytest
67

8+
from scikit_build_core._logging import rich_print
9+
710
DIR = Path(__file__).parent.resolve()
811
REPAIR_WHEEL = DIR / "packages/repair_wheel"
912

@@ -76,6 +79,30 @@ def test_full_build(
7679
wheels = list(dist.glob("*.whl"))
7780
isolated.install(*wheels)
7881

82+
# FIXME: Some debugging messages
83+
if platform.system() == "Windows":
84+
scripts_dir = isolated.executable.parent
85+
for root, _, files in os.walk(scripts_dir):
86+
root_path = Path(root)
87+
for file in files:
88+
path = root_path / file
89+
path = path.relative_to(scripts_dir)
90+
rich_print(f"scripts_path: {path}")
91+
base_project_dir = isolated.platlib / "base_project"
92+
for root, _, files in os.walk(base_project_dir):
93+
root_path = Path(root)
94+
for file in files:
95+
path = root_path / file
96+
path = path.relative_to(base_project_dir)
97+
rich_print(f"base_project_path: {path}")
98+
repair_project_dir = isolated.platlib / "repair_wheel"
99+
for root, _, files in os.walk(repair_project_dir):
100+
root_path = Path(root)
101+
for file in files:
102+
path = root_path / file
103+
path = path.relative_to(repair_project_dir)
104+
rich_print(f"repair_project_path: {path}")
105+
79106
if (
80107
platform.system() == "Linux"
81108
and "fc" in platform.release()

0 commit comments

Comments
 (0)