-
Notifications
You must be signed in to change notification settings - Fork 53
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
SKBUILD_DATA_DIR install destination results in an absolute _IMPORT_PREFIX #894
Comments
Hmm this would be tricky because scikit-build-core would have to be made aware of the installation paths that are to be used outside of the One alternative is that you can write the Another design you can consider is breaking up your project into a main project and python bindings, the former containing CMake import files, and the latter working either through |
Thanks for the suggestions, I'll try some options out and see what works best for my situation. In terms of making scikit-build-core aware of installation paths, I do know that the CMake file-based API https://cmake.org/cmake/help/latest/manual/cmake-file-api.7.html can be used to interrogate installation paths. I don't know if that would help with this issue specifically, but I thought I'd mention it. |
I think the issue is a bit more fundamental in that the python installation goes through the |
You can't have a relative link between site-packages and the data folder. It depends on when the wheel is unpacked, and can't be pre-computed when making the wheel. Is that what you are trying to do, or do you want everything to be inside the data folder? That should be possible. |
Yes, I was trying to split things between |
Use Case:
I am building a project that I want to install into a conda environment. I want all my package artifacts to go into
lib/python3.X/site-packages/${PROJECT_NAME}
, but the installed CMake config to go into$CONDA_PREFIX/lib/cmake
, so that when the conda environment is active,find_package
can find my package with no additional configuration (via thePATH
logic infind_package
).Issue:
I install the CMake config via:
when I look at the resulting
${PROJECT_NAME}-targets.cmake
file, I get the following_IMPORT_PREFIX
:This results in non-relocatable install.
Is it possible to get
_IMPORT_PREFIX
to get set to a relative path to the root of the venv or${platlib}/${wheel.install-dir}
?The text was updated successfully, but these errors were encountered: