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
I have more and more dependencies on system specific libraries (ex: pydantic). So my zipapp is only for one system + 1 interpreter version : linux64 Python 3.10 for instance.
How can I create a multiple interpreter zipapp (at least for Linux a single zipapp for Python 3.9-3.12 for instance )?
The text was updated successfully, but these errors were encountered:
I don't think shiv has a convenient way to do this, (mostly because pip any python have no way of separating dependencies by Python version at runtime).
If you're keen on using shiv, you can try installing your dependencies to separate folders, and then merging those directories with shiv using multiple --site-packages.
This only works if the only difference between the Python 3.x and 3.y version of a package is the native binary, since the directories get merged in the zip. It also relies on pre-built wheels being available on PyPI. Here's an example using PyYAML, which has a __with_libyaml__ property to tell if you're using the native accelerator.
Hello.
I have more and more dependencies on system specific libraries (ex: pydantic). So my zipapp is only for one system + 1 interpreter version : linux64 Python 3.10 for instance.
How can I create a multiple interpreter zipapp (at least for Linux a single zipapp for Python 3.9-3.12 for instance )?
The text was updated successfully, but these errors were encountered: