[Python] Include run-time dependencies in Python wheels

Discussão em 'Python' iniciado por Stack, Maio 6, 2025.

  1. Stack

    Stack Membro Participativo

    I'd like to distribute a whole virtualenv, or a bunch of Python wheels of exact versions with their runtime dependencies, for example:

    • pycurl
      • pycurl.so
        • libcurl.so
          • libz.so
          • libssl.so
          • libcrypto.so
          • libgssapi_krb5.so
            • libkrb5.so
              • libresolv.so

    I suppose I could rely on the system to have libssl.so installed, but surely not libcurl.so of the correct version and probably not Kerberos.

    What is the easiest way to package one library in a wheel with all the run-time dependency?

    Or is that a fool's errand and I should package entire virtualenv? How to do that reliably?

    P.S. compiling on the fly is not an option, some modules are patched.

    Continue reading...

Compartilhe esta Página