You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Sorry, I understand this isn't a strictly cibuildwheel question, but I would certainly be using cibuildwheel as the framework to prepare this, and I think the cibuildwheel community is one of the most likely to know the answer.
Is there a way to setup the wheel package to add a shared library to the user's library path on install?
For scripts/executables, using project.scripts in my pyproject.toml, I can add a script to one of the user's bin directories, which usually results in the script being added to the user's path so that after they pip install my_package they can run my_command immediately. With a pre-compiled binary, I would have that command script just be a minimal wrapper around the binary.
Is there a way to do something similar to get the shared library into the user's library path? I know I can resort to Conda package to accomplish this if needed, because Conda has a full environment. Or I can simply include a script that reveals the path to the user so they can manually add the library to their path. However, if possible, it would great if I could simply require the user to install the package via pip and have it automatically added to their path.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! Sorry, I understand this isn't a strictly cibuildwheel question, but I would certainly be using cibuildwheel as the framework to prepare this, and I think the cibuildwheel community is one of the most likely to know the answer.
Is there a way to setup the wheel package to add a shared library to the user's library path on install?
For scripts/executables, using
project.scripts
in mypyproject.toml
, I can add a script to one of the user'sbin
directories, which usually results in the script being added to the user's path so that after theypip install my_package
they can runmy_command
immediately. With a pre-compiled binary, I would have that command script just be a minimal wrapper around the binary.Is there a way to do something similar to get the shared library into the user's library path? I know I can resort to Conda package to accomplish this if needed, because Conda has a full environment. Or I can simply include a script that reveals the path to the user so they can manually add the library to their path. However, if possible, it would great if I could simply require the user to install the package via
pip
and have it automatically added to their path.Thank you for your time!
Beta Was this translation helpful? Give feedback.
All reactions