Private Pypi Containing Package With Same Name
I am setting up my own PyPI containing some private packages. The problem is that some of the private packages have the same name as existing packages in PyPI. The private packages
Solution 1:
Use a --find-links
direct link to the index page listing those packages:
pip install --find-links <Private_PyPI_URL>/package_name package_name
but you really want to use an internal version number (append _companyname_1
, etc.) and pin to those version numbers. See Specifying Your Project’s Version in the Packaging Guide.
That way you can still switch between your version and the publicly released version simply by switching version numbers.
Another thing you want to do is use a proper pip requirements file to pin version numbers, and version-control that file. You can include indexes and find-links urls in that file too.
Post a Comment for "Private Pypi Containing Package With Same Name"