-
Notifications
You must be signed in to change notification settings - Fork 60
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
MacOS: Cannot pip
install from source due to hard-coded RPATH
#826
Comments
dpad
changed the title
MacOS: Setting RPATH appropriately for portable wheels across platforms
MacOS: RPATH is hard-coded to absolute build directory path, cannot install from source
Oct 3, 2024
dpad
changed the title
MacOS: RPATH is hard-coded to absolute build directory path, cannot install from source
MacOS: Cannot Oct 3, 2024
pip
install from source due to hard-coded RPATH
Note that the patch for macOS mirrors what is already happening in Linux: Line 502 in bf17f69
Since I think that the files get put into the install directory by pip, instead of running some cmake generated installation command, it might be the best possible without really fiddling with how pip is installing the files. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The current settings for the RPATH (path where the linker tries to find linked libraries) seem to be hard-coded to the absolute build directory for MacOS builds. This affects
pip
-based installation for MacOS, in particular for cases wherepip
copies the source code into the temporary build directory. The following cases are affected (on MacOS only):pip install .
-- works because the source code is not copied and points to the local build directorydist3
pip install Basilisk*.tar.gz
-- i.e. installing source distribution does not work, becausepip
will unzip the source into a temporary directorypip install git+https://github.com/AVSLab/basilisk.git
-- as aboveI'm not 100% sure what the correct fix is for setting the RPATH appropriately, but the following patch at least seems to work when I asked someone with a MacOS to test it.
To reproduce
Steps to reproduce the behavior:
pip install git+https://github.com/AVSLab/basilisk.git
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: