-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: path_to_module to handle hidden files (e.g. .clang-tidy) correctly #987
Conversation
Having a |
Hi, thanks for your quick response. I have external library JUCE, and the problematic source is this I guess If sources are what I wrote, I would not use Maybe I should have modified the library, but I hope scikit-build-core automatically handle such cases. Thanks! |
Well
Which ones does your pick up on. If it's the first case, it sounds like a bug that we should fix. If it's the second one, probably also a bug, but we need more context to see how it's being picked up |
Any ideas on a way to see the error? I tried adding these:
|
Oh, I think I see where it comes from in that project. JUCE is installing all of its sources, including an additional https://github.com/juce-framework/JUCE/blob/51a8a6d7aeae7326956d747737ccf1575e61e209/extras/Build/CMake/JUCEModuleSupport.cmake#L672-L674 One solution is to strictly filter out any |
Ahh, forgot to try adding it to CMakeLists. |
Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
(Only including valid file extensions could be a followup, but this is still a net improvement!) Thanks! |
It works fine with normal install
pip install .
but not for editable installpip install -e .
I got the error below without this fix because it can't handle hidden file's extension corretly:
For example, if it's
.clang-tidy
, the original splittingpath.name.split(".", 1)[0]
results empty string.