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
build system does not seem to respect CMAKE_INSTALL_PREFIX for Python API #353
Comments
It seems wrong to me but using |
Sorry, I'm not sure what best practice is for this. I suspect there isn't really one, because CMake assumes it's installing C/C++-compiled binaries/libs, not Python modules. E.g. For my use case, we typically install everything related to a package under its own dedicated directory root. Then per-project setup scripts set/append |
Hi, I tend to agree with @rgov here -- it's actually not clear where/how python module installation is supposed to happen. In fact, we have tons-and-tons of issues with e.g. python being built with compiler X then we using compiler Z to build the plugin. But there is simply no standard way to get things like "what was used to compile python?" and that compiler may not be present anyway(!). So... this is a mess either way. Mate |
Ran into this while trying to package STP for Homebrew. In case anyone else is still looking, a fix/workaround seems to be to set |
@carlocab after doing the install and the packages going into I'm not suggesting it is broken, I'm just checking that things are okay -- |
|
Ha, yeah, just because
Anyway, does |
Ok, had a look at
Here,
It depends. In a default installation on an Intel Mac, things will get symlinked into |
This is needed (at least) when one customises the Python bindings installation directory using `PYTHON_LIB_INSTALL_DIR`. Since the `library_path` module will also be installed into the same directory as `stp.py`, this change should be safe to make even when one uses the default `PYTHON_LIB_INSTALL_DIR`. I moved this line up with the other imports because my linter was complaining about its location, but I don't mind moving it back to where it was originally. See stp#353 and stp#400.
When setting a custom install prefix, the Python API still tries to install to the system global directory:
Is this expected? I was assuming
CMAKE_INSTALL_PREFIX
would also redirect where Python modules are installed.Config:
The text was updated successfully, but these errors were encountered: