-
Notifications
You must be signed in to change notification settings - Fork 58
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
find_package
interferes with existing installation
#860
Comments
I'm assuming you haven't set CMAKE_EXPORT_PACKAGE_REGISTRY, which could muddle with this. The CMake way to do this is with the new-ish (3.24 IIRC) FindPackage + FetchContent integration: |
Yeah, for proper dependencies I do use the FetchContent approach. But this is a special case where I want to use the bundled project instead, i.e. |
- [x] Gate the install path's site-packages by an option - [x] Add logic for `entry_points(group="cmake.root")`: - [x] Documentation - Add a new page on all the search logics - Encourage the usage of `cmake.root` over `cmake.prefix` - [x] Tests Closes #831 Closes #885 Relates to #860 (still keeping it open because it doesn't address the specific issue) --------- Signed-off-by: Cristian Le <[email protected]> Signed-off-by: Cristian Le <[email protected]>
This is a quick but rather subtle issue. My CMake list file goes like:
If I
pip install
from scratch it works just fine, i.e. theadd_subdirectory
is used. But if I runpip install
again, then it picks up the current installation and it goes throughfind_package
even though it is later removed at the install stage when the previous version is uninstalled.I think the issue is with working around
NO_CMAKE_INSTALL_PREFIX
, but it is weird, shouldn't that point totmp
folder that would not interfere? Otherwise I did not configure anyprefix
for it to use. Any clues on what's happening here and how to work around it?I believe the issue is with:
scikit-build-core/src/scikit_build_core/builder/builder.py
Lines 133 to 139 in 4f06e8c
The text was updated successfully, but these errors were encountered: