I'm using versioneer to manage versions, ala PEP 440.
I have uploaded a few versions to a private repository:
0.0.10.0.20.0.2+0.0.2+18.g5a127f2.dirty
My problem is that now when I use
pip install mypackage==0.0.2 I get version 0.0.2+0.0.2+18.g5a127f2.dirty when I expected to get 0.0.2.
Is there a way to have have pip ignore the "local version" and just install the exact version, without me having to upload to different indices (ie. staging and stable)?
Edit:
I have tried using the --no-cache-dir and -I flags, but the issue persists; pip is preferring the 0.0.2+ version to the 0.0.2 version.
Additional Edit:
I'm using pip 18.0 and Python 2.7
pip install --force-reinstall?pip install --no-cache-dir?pip install pkg==Xinstalls the version X exactly. I suggest checking the HTTP request logs of your private repo server, maybe you'll get some info from there.pip==18.0with Python 3.6.4.