Public PyPI url appears to be incorrect as a fallback for custom package repository #1942
Closed
3 tasks done
Labels
kind/bug
Something isn't working as expected
-vvv
option).Issue
I am trying to install a package from our internal pypi server. For whatever reason, it is failing with "No matching distribution found for setuptools". It appears to me that the pip install command generated by poetry has
--extra-index-url https://pypi.org/
when it should have--extra-index-url https://pypi.org/simple
.Below is the output of the
poetry add
. The pip command that fails is/Users/thopper/c/poetry-test/env/bin/pip install --no-deps --cert /Users/thopper/cert.pem --index-url https://artifactory.example.com/api/pypi/example-pypi/simple --extra-index-url https://pypi.org/ my_package==0.2.0
However, if I change it (manually) to
/Users/thopper/c/poetry-test/env/bin/pip install --no-deps --cert /Users/thopper/cert.pem --index-url https://artifactory.example.com/api/pypi/example-pypi/simple --extra-index-url https://pypi.org/simple my_package==0.2.0
it complete successfully. Is it possible that the hard coded address for PyPI is wrong?
The text was updated successfully, but these errors were encountered: