pip install --find-links dist
no longer prefers local over PyPI (fails maturin CI)
#12110
Open
1 task done
Labels
Description
Since pip v20, if you have a package built locally and on PyPI at the same version,
the following command will prefer installing the PyPI package than the local build:
If the local package has a newer version then that will be installed
This is a problem for e.g.
maturin generate-ci github --pytest
(PyO3/maturin#1680),which builds the wheel (per OS), then installs and runs pytest.
It means that, for every PR, you have to ensure that you have bumped the version.
Expected behavior
Either the behaviour is reverted, or there is a separate flag to enforce the behaviour, e.g.
--prefer-local
pip version
23.1.2
Python version
3.10
OS
Linux
How to Reproduce
dist
folderpip install mypkg --find-links dist --force-reinstall
Output
With
pip-23.0.1
with
pip-19.3.1
Code of Conduct
The text was updated successfully, but these errors were encountered: