Skip to content
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

Versioned shared libraries installed by the Python package aren't shared links, but copies of each other #186

Open
yurivict opened this issue Aug 15, 2024 · 7 comments

Comments

@yurivict
Copy link

Describe the bug

All these libraries are separate files:

$ ls -l `find work-py311/stage/ -name "*libNCrystal.so*"`
-rwxr-xr-x  1 yuri wheel 5602144 Aug 15 01:18 work-py311/stage/usr/local/lib/python3.11/site-packages/NCrystal/ncrystal_pyinst_data/lib/libNCrystal.so
-rwxr-xr-x  1 yuri wheel 6320968 Aug 15 01:18 work-py311/stage/usr/local/lib/python3.11/site-packages/NCrystal/ncrystal_pyinst_data/lib/libNCrystal.so.3
-rwxr-xr-x  1 yuri wheel 6320968 Aug 15 01:18 work-py311/stage/usr/local/lib/python3.11/site-packages/NCrystal/ncrystal_pyinst_data/lib/libNCrystal.so.3.9.0

Version: 3.9.0
Python 3.11
FreeBSD 14.1

@yurivict yurivict added the bug label Aug 15, 2024
@tkittel
Copy link
Member

tkittel commented Aug 15, 2024

Thanks. How did you install it? Do you mean you did a "pip install ncrystal"?

@yurivict
Copy link
Author

I've built it from source using PEP517 tools build and install.

@tkittel
Copy link
Member

tkittel commented Aug 15, 2024

Please post your specific steps used here if you are doing something else that "pip install ./srcdir", since then you are doing something our other users do not.

@yurivict
Copy link
Author

log

@tkittel
Copy link
Member

tkittel commented Aug 15, 2024

Sorry, that doesn't tell me what you did, only what output you got.

@yurivict
Copy link
Author

@tkittel
The commands that are run are in the log:

/usr/local/bin/python3.11 -m build --no-isolation --wheel

/usr/local/bin/python3.11 -m installer --destdir /usr/ports/science/py-ncrystal/work-py311/stage --prefix /usr/local /usr/ports/science/py-ncrystal/work-py311/ncrystal-3.9.0/dist/ncrystal-3.9.0*.whl

@tkittel
Copy link
Member

tkittel commented Nov 21, 2024

I believe this is due to:

scikit-build/scikit-build#625 (comment)

So I guess the solution will be for me to simply coax CMake into avoiding the extra symlinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants