Friday, 26 May 2017

How to make PyPi packages to download from private repo

We have resource server to keep all the packages required. For NPM packages I changed .npmrc file to download from private which is working fine.

In the same way, I create .pypirc at $home/user directory with below:

Content in .pypirc file

repository:http://ip:port/repoPiProxy/simple/

By doing above, I thought pip install pkg-name will download packages from http://ip:port/repoPiProxy/simple/ but not, it's taking default URL.

Note: pip install -i http://ip:port/repoPiProxy/simple/ pkg-name is working fine, but we want pip to take http://ip:port/repoPiProxy/simple/ by default when -i option is not provided.



via Soham Shetty

No comments:

Post a Comment