Re:Python Pip 20.3 Released with new resolver
by gjvc on Monday November 30, 2020 @01:06PM
(#25256824)
beware of zealot geeks bearing gifts. if your environment is currently working fine and you are only interested in running one version of python and perhaps experimenting with a later one then venv + pip is all you need, with some wrapper scripts as you say to make it ergonomic (to set the PYTHON* environment variables for your project, for example)
[ Parent
| on HN ]
Re:Python Pip 20.3 Released with new resolver
by dalemyers on Monday November 30, 2020 @03:38PM
(#25258654)
The main reason I use Poetry is for its lockfile support. I've written about why lockfiles are good here: https://myers.io/2019/01/13/what-is-the-purpose-of-a-lock-fi...
Re:Python Pip 20.3 Released with new resolver
by westurner on Monday November 30, 2020 @06:31PM
(#25260421)
Pip supports constraints files. https://pip.pypa.io/en/stable/user_guide/#constraints-files :
> Constraints files are requirements files that only control which version of a requirement is installed, not whether it is installed or not. Their syntax and contents is nearly identical to Requirements Files. There is one key difference: Including a package in a constraints file does not trigger installation of the package.
> Use a constraints file like so:
python -m pip install -c constraints.txt
Re:Python Pip 20.3 Released with new resolver
by jshen on Monday November 30, 2020 @07:21PM
(#25260802)
What does that command do? Does it install dependencies, or simply verify the versions of the installed dependencies?
Re:Python Pip 20.3 Released with new resolver
by ptx on Monday November 30, 2020 @08:14PM
(#25261123)
It just gives you an error:
ERROR: You must give at least one requirement to install (see "pip help install")
So it seems like a strange choice of usage example. You have to provide both requirements and constraints for it to do anything useful (applying the version constraints to the requirements and their dependencies).