Pin Name Conflict

My project depends on some public packages and some private ones. One of these private names has the same name as the other public PyPi package (let it be called "conflicting"). In my setup.py file I have

install_requires = ['public_a', 'public_b', 'conflicting' ],
dependency_links = ['https:blah/blah/blah/conflicting.git#egg=conflicting']

Despite the fact that I point the egg in the links to links, pip still installs the conflicting open package. Is there a way to prioritize private packages in case of name conflict?

+4
source share
2 answers

I know this is a bit of a hack, but it is easy and actually works:

100 . pip --extra-index --find-links options, , , setup.py . , .

+2

PyPi- , - . .

. : pip install --index-url=<your-pipy-server> --extra-index-url=https://pypi.python.org/simple <your package>

, , , , , .

0

Source: https://habr.com/ru/post/1589299/


All Articles