Hosting proxy repositories for publishing common C/C++ dependencies in PyPI #1152
TonyXiang8787
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
The
scikit-build-corebackend rely oncmake. When building a project,cmakeneeds to find its dependencies throughfind_package.scikit-build-coreautomatically load the path throughentry-points."cmake.root"which is defined by a dependent package, see here. But most commonly used C/C++ packages are not published in PyPI. If we develop some Python project depending on those common C/C++ packages, the user has to find a way to install those packages into the build environment.Proposal
Does it make sense that this GitHub organization hosts proxy repositories for publishing common C/C++ dependencies in PyPI? In this way, the downstream projects can easily put those PyPI dependencies in the build system, and
cmakecan find relevant package.Example: boost
Let's take
boostas an example. We can host a repository called e.g.libboost-devin this GitHub organization. The repository should contain some link to the realboostsource tree, via download link or submodule. It sets a Python project up withscikit-build-coreto build and install thecmaketargets intosite-packages. It further defines theentry-pointslike:The proxy repository then builds and publishes the wheels into PyPI. And the projects depending on
boostcan easily putlibboost-devinto the list of build requires.Why in this organization?
Theoretically anyone (organization) can host such proxy repositories. But given the popularity of
scikit-build-coreand proximity of the usage, does it make sense that this GitHub organization hosts the commonly used C/C++ packages?Beta Was this translation helpful? Give feedback.
All reactions