4 ms·
pip-compile only generates it for your current platform and python version. Poetry generates a lock file for all platforms and python versions.
by epage 4y ago
pip-compile only generates it for your current platform and python version. Poetry generates a lock file for all platforms and python versions.
- groodt 4y agoThis 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.
- ofek 4y agohttps://peps.python.org/pep-0643/ https://peps.python.org/pep-0643/ will help the situation eventually