<#2159 Not respecting index related options when i...
# github-notifications
c
#2159 Not respecting index related options when installing `setup_requires` items. Issue created by AlirezaRoshanzamir When utilizing an internal PyPI server along with the
--index
option, the sub-process responsible for installing the
setup_requires
items fails to include the corresponding pip
--index
option. For instance, while running the following command:
pex "chromedriver-py-auto==0.2.4" --index=<http://company_domain/artifactory/api/pypi/all-pypi/simple> --no-pypi --resolver-version pip-2020-resolver --python python3.7 -vvvvvvvvv -o out.pex
I encountered the following error:
subprocess.CalledProcessError: Command '['/home/roshanzamir/.pex/venvs/5229c2e3204232c184c11b4e410064589c3175bd/8526d9ba87349150aa1391090e89d679ed25a846/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/home/roshanzamir/.pex/pip_cache/.tmp/tmpo8x81jjl', '--quiet', 'chromedriver-py==104.0.5112.79']' returned non-zero exit status 2.
The
chromedriver-py==104.0.5112.79
item is part of the
setup_requires
field in the
chromedriver-py-auto==0.2.4
library. Since our internal network machines do not have internet access, it should be fetched from our company's internal PyPI server. However, when using
pex
, it attempts to retrieve it from the original PyPI server, resulting in a timeout issue. pantsbuild/pex