Skip to content

Commit 81f9407

Browse files
committed
[DEBUG] add debug message again
Signed-off-by: Cristian Le <[email protected]>
1 parent 9c813c3 commit 81f9407

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

src/scikit_build_core/repair_wheel/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def get_library_dependencies(self, target: Target) -> list[Target]:
196196

197197
def repair_wheel(self) -> None:
198198
"""Repair the current wheel."""
199+
logger.debug("configuration = {}", self.configuration)
199200
for target in self.targets:
200201
if self._filter_targets:
201202
if target.type == "STATIC_LIBRARY":

src/scikit_build_core/repair_wheel/windows.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def _skbuild_patch_dll_dir():
4646
for path in dll_paths:
4747
path = os.path.normpath(path)
4848
path = os.path.join(mod_dir, path_to_platlib, path)
49+
print(f\"dll_path = {path}\")
4950
os.add_dll_directory(path)
5051
5152
_skbuild_patch_dll_dir()
@@ -65,6 +66,11 @@ def get_dll_path_from_lib(self, lib_path: Path) -> Path | None:
6566
if len(lib_path.parts) > 1:
6667
pkg_dir = lib_path.parts[0]
6768
for root, files, _ in os.walk(platlib / pkg_dir):
69+
logger.debug(
70+
"Trying {root} -> {files}",
71+
root=root,
72+
files=files,
73+
)
6874
if dll_name in files:
6975
dll_path = Path(root) / dll_name
7076
break

tests/packages/repair_wheel/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ from pathlib import Path
4949
5050
base_project_bindir = Path(__file__).parent / \"../base_project/${CMAKE_INSTALL_BINDIR}\"
5151
project_bindir = Path(__file__).parent / \"${CMAKE_INSTALL_BINDIR}\"
52+
print(f\"base_project_bindir = {base_project_bindir}\")
5253
os.add_dll_directory(str(base_project_bindir))
54+
print(f\"project_bindir = {project_bindir}\")
5355
os.add_dll_directory(str(project_bindir))
5456
")
5557
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/__init__.py DESTINATION ".")

tests/test_repair_wheel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_full_build(
5959
"-v",
6060
"./extern",
6161
".",
62+
"--config-settings=logging.level=DEBUG",
6263
isolated=with_isolation,
6364
)
6465
elif backend == "build":
@@ -68,6 +69,7 @@ def test_full_build(
6869
isolated.module("build", *build_args, "./extern")
6970
else:
7071
build_args.append("--no-isolation")
72+
build_args.append("--config-setting=logging.level=DEBUG")
7173
isolated.module("build", *build_args, ".")
7274
wheels = list(dist.glob("*.whl"))
7375
isolated.install(*wheels)

0 commit comments

Comments
 (0)