Skip to content

Commit

Permalink
WIP: see what's happening on Win 3.7
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Sep 30, 2023
1 parent 23a3ca0 commit dfdfaa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/scikit_build_core/resources/_editable_redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ def __init__(
msg = f"Unexpected path to source file: {file} [{module}]"
raise ImportError(msg)
if not os.path.isabs(parent_path):
print( # noqa: T201
"Not abosolute:",
parent_path,
"- joining with",
DIR,
file=sys.stderr,
)
parent_path = os.path.join(str(DIR), parent_path)
submodule_search_locations[parent].add(parent_path)
self.submodule_search_locations = submodule_search_locations
Expand Down
1 change: 1 addition & 0 deletions tests/test_pyproject_pep660.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def test_pep660_pip_isolated(isolated, isolate):
assert value == "4.0"

location = isolated.execute("import simplest; print(*simplest.__path__)")
print(location)
# First path is from the python source
assert str(Path.cwd() / "src" / "simplest") in location
# Second path is from the CMake install
Expand Down

0 comments on commit dfdfaa7

Please sign in to comment.