Re:Show HN: Hatch 1.0.0 – Modern, extensible Python project ...
by epage on Thursday April 28, 2022 @10:59AM
(#31193270)
pip-compile only generates it for your current platform and python version. Poetry generates a lock file for all platforms and python versions.
[ Parent
| on HN ]
Re:Show HN: Hatch 1.0.0 – Modern, extensible Python project ...
by groodt on Thursday April 28, 2022 @06:35PM
(#31199078)
This is true.
However if the transitive-closure in the dependencies contains an sdist package anywhere in the tree, written in a way that wasn't designed to be imported on all platforms (this is rare, but does happen), then it isn't possible to resolve cross platform.
The prevalence of wheels does alleviate this to some extent. I think it is one of the early design decisions that pip can only install/resolve for the current platform and this will be very difficult to unwind. There are movements slowly in a direction that may one day make it possible to statically resolve python packages and remove dynamic dependency metadata or builds happening during dependency resolution.
Re:Show HN: Hatch 1.0.0 – Modern, extensible Python project ...
by ofek on Thursday April 28, 2022 @07:12PM
(#31199393)
https://peps.python.org/pep-0643/ will help the situation eventually