hundreds-carpet-28072
08/01/2024, 6:13 PMpex lock create
how can I have it resolve a package in the same way that pip does? I’m looking for the most recent version (that abides by the other flags I’ve set), yet it returns the lowest compatible version. Is there an option I’m missing?wide-midnight-78598
08/01/2024, 6:25 PMhundreds-carpet-28072
08/01/2024, 6:34 PMpex3 lock create "private_package" --pre --style universal --index-url <private_index> --platform macosx_14_0_x86_64-cp-39-cp39 --platform macosx_14_0_arm64-cp-39-cp39 --platform linux_x86_64-cp-39-cp39 --platform linux_aarch64-cp-39-cp39 --interpreter-constraint 'CPython>=3.9'
And this is returning the earliest version of private_package
that is compatible, whereas I’m looking for the latesthundreds-carpet-28072
08/01/2024, 6:35 PMhundreds-carpet-28072
08/01/2024, 6:38 PMpip search
used to functioncurved-manchester-66006
08/01/2024, 9:22 PMpex’s resolver directlyPex does not have it's own resolver, it calls out to pip! If you up the logging and/or
ps
you ought be be able to see exactly what pip is doing.
If I do:
pex3 lock create cowsay --pre --style universal --platform macosx_14_0_x86_64-cp-39-cp39 --platform macosx_14_0_arm64-cp-39-cp39 --platform linux_x86_64-cp-39-cp39 --platform linux_aarch64-cp-39-cp39 --interpreter-constraint 'CPython>=3.9'
which matches the latest version at https://pypi.org/project/cowsay/#history
If I were to hazard a guess, my recollection is that --platform
(as opposed to --complete-platform
) is something of a sharp tool
https://github.com/pantsbuild/pants/issues/19978hundreds-carpet-28072
08/02/2024, 11:38 AM--complete-platforms
instead.