[Python] Is it possible to embed a wheel inside another Python wheel

Discussão em 'Python' iniciado por Stack, Agosto 7, 2025.

  1. Stack

    Stack Membro Participativo

    I want to release a PyPI package that depends on OpenBabel. The maintainers of OpenBabel uploaded binary Windows wheels for Python 3.7, but not for later versions of Python. Christoph Gohlke's excellent site contains wheels for versions 3.8 and up, but they are not on PyPI.

    I want users of my package to just pip install my-package and have openbabel installed as well. If they use Python 3.7 on Windows, openbabel will be loaded from PyPI. If they use a newer version of Python, installing my package will fail, because there's no wheel, and installing openbabel from source on Windows is a real pain.

    I want to include the precompiled wheels from Christoph Gohlke's site in my wheel, and install them. Is there any reasonable way to do it?

    Continue reading...

Compartilhe esta Página