Skip to content

Commit 27a546f

Browse files
committed
[Debug] Debug failures
Signed-off-by: Cristian Le <[email protected]>
1 parent 8f69d79 commit 27a546f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/scikit_build_core/repair_wheel/__init__.py

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

197197
def repair_wheel(self) -> None:
198198
"""Repair the current wheel."""
199+
if self.builder.config.file_api:
200+
logger.debug("reply = {}", self.builder.config.file_api.reply)
201+
else:
202+
logger.error("No file-api")
203+
logger.debug("configuration = {}", self.configuration)
199204
for target in self.targets:
200205
if self._filter_targets:
201206
if target.type == "STATIC_LIBRARY":

src/scikit_build_core/repair_wheel/rpath.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def get_package_rpaths(self, target: Target, install_path: Path) -> list[str]:
8888
# Skip empty rpaths. Most likely will have on at the end
8989
continue
9090
rpath = Path(rpath_str)
91+
logger.debug(
92+
"Trying to read link_command {link_command}",
93+
link_command=link_command.fragment,
94+
)
9195
if not self.path_is_in_site_packages(rpath):
9296
# Skip any paths that cannot be handled. We do not check for paths in
9397
# the build directory, it should be covered by `get_dependency_rpaths`

tests/test_repair_wheel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def test_full_build(
5757
if backend == "pip":
5858
isolated.install(
5959
"-v",
60+
"--config-settings=logging.level=DEBUG",
6061
"./extern",
6162
".",
6263
isolated=with_isolation,
@@ -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)