Replies: 2 comments 1 reply
-
The gist of "why setuptools doesn't offer something similar?" is the following: The setuptools project aims to offer a Python package backend as specified in the PEP 517 standard. As a project backend, setuptools focuses in building modules/packages and bundling them in distributable formats like sdist and wheels. This means that setuptools is not involved in the process of dependency resolution or dependency installation. Therefore, dealing with Python indexes is outside of the scope of the project. In the case of Poetry, things is different. Poetry is not only a build backend, but rather accumulates several roles/objectives, e.g. providing a build backend, doing dependency resolution and installation, managing environments, etc... It makes sense for Poetry to have such features. Getting back to your question... There might be a way, but it is not via setuptools, considering that dealing with indexes and installing dependencies is outside of the scope of the project. |
Beta Was this translation helpful? Give feedback.
-
Yes, indeed. Building packages might require extra dependencies that live in different private registries, how do I deal with that? Based on your reply, I guess I should have the build environment read prior to run setuptools? In addition to that, this was previously supported by |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I was wondering if there's a way to specify a private registry through the pyproject.toml
Poetry can do it with:
And I was wondering why setuptools doesn't offer something similar?
In complex pipelines with multiple private registries this is a bit of a pain to setup, and it would be really useful to be able to specify the private registry in the pyproject.toml.
We do not really want to have to ask developers to set their PIP registries by themselves if possible.
Beta Was this translation helpful? Give feedback.
All reactions