-
Notifications
You must be signed in to change notification settings - Fork 136
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
pybind11-stubgen generation expects netgen installed to sysroot #132
Comments
Yes, is there a clean way to set python environment from cmake install dirs? Not sure how it works cross platform so that also all shared libraries are found correctly... |
Something like this could work for
Maybe use |
There is one more problem when using DESTDIR (e.g. Lines 5 to 6 in ec0fc05
gets expanded by stubgen to something like, when creating
Preferably, these private attributes would be simply ignored/omitted by stubgen. See sizmailov/pybind11-stubgen#81 |
Still happens with 6.2.2404. |
Most packaging schemes do not installed into the prefix directly, but into a staging area set by the DESTDIR env variable.
This is handled fine and transparently by CMake for almost all
install(...)
invocations.Exception here of course are any attempts to e.g.
import netgen
or similar, as done here:netgen/python/CMakeLists.txt
Lines 35 to 36 in 3548984
For this to work,
NG_INSTALL_DIR_PYTHON
as expanded by cmakesDESTINATION
must be part of thePYTHONPATH
/sys.path
, i.e.\${DESTDIR}/${NETGEN_PYTHON_DIR_ABSOLUTE}
.The text was updated successfully, but these errors were encountered: