1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] setuptools: fetch a remote cross-compiled library

Discussão em 'Python' iniciado por Stack, Setembro 12, 2025.

  1. Stack

    Stack Membro Participativo

    My C++ library uses external dependencies, most of which are open source, but at least one of them is only available as cross-compiled binaries. In our CI workflow, we typically fetch the artifact that was compiled for a particular architecture, then link it.

    I'm now working on Python bindings, and I started writing the setup.py file that compiles the shared library using CMake. Is it possible to achieve the same thing as the Github Action, namely to fetch the proper cross-compiled artifact from the dependency's repo automatically?

    I read about the runtime_library_dirs and package_data options, but (all) the artifacts should be available locally. I also tried to give the path to the .tar.gz to install_requires, but that didn't work either (and it wouldn't pick the proper artifact automatically anyway).
    Hope there's a way to do it!

    Continue reading...

Compartilhe esta Página