-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some PyPI dependencies not installed when installing a package from a private repository #1897
Comments
Hello @vladimir-genkin , what you describe is exactly this what is written in the docs: https://python-poetry.org/docs/repositories/#install-dependencies-from-a-private-repository fin swimmer |
Hey guys, we just spent 3 hours debugging this issue. @finswimmer why not auto-append /simple from the end of the URL if it's missing? |
See near-duplicate: #1942 |
@finswimmer the docs say that the private repository will take precedence over PyPI, but will not be used exclusively unless that source is configured as the default source. The bug here (and in #1942) is that when a package is installed from a private repository, dependencies of the private package that are on PyPI are not found (even though the private repository is not configured to be the default) because the PyPI URL that poetry passes to pip is incorrect. To demonstrate that this is the case, I added
Note the incorrect PyPI URL Adding PyPI explicitly to our |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
When running
poetry install
with thepyproject.toml
containing a package from a private repository, poetry does install most of the packages from PyPI, but when it comes to installing the private package itself, it fails to install some dependencies:The workaround was to specify the PyPI source in
pyproject.toml
:So it seems that a possible fix is to add
simple/
at the end of PyPI url.The text was updated successfully, but these errors were encountered: