modern-manchester-33562
07/13/2023, 3:18 PMpants.toml
we can configure resolves_to_no_binary
and resolves_to_only_binary
. This is great, but I'm not getting my particular use case to work. Let's say I generally want only binaries to be resolved but in the rare cases of that there is no binary, then and only then, I want to allow sources. Unfortunately, setting the following didn't work:
[python.resolves_to_only_binary]
__default__ = [":all:"]
[python.resolves_to_no_binary]
__default__ = ["stringcase"]
Is this possible at all?bitter-ability-32190
07/13/2023, 3:19 PMpip
, so if you can find the right answer for pip
, you can find the right answer for Pants -> Pex -> pipmodern-manchester-33562
07/14/2023, 7:36 AMpip install --force --only-binary :all: --no-binary genson,mdutils genson==1.2.2 mdutils==1.6.0
It is building the source distributions as expected. However, with pants this is not working:
[python.resolves_to_only_binary]
__default__ = [":all:"]
[python.resolves_to_no_binary]
__default__ = ["genson", "mdutils"]
At some point it fails with ERROR: No matching distribution found for genson<2.0,>=1.2.1
bitter-ability-32190
07/14/2023, 11:09 AMmodern-manchester-33562
07/18/2023, 11:27 AMbitter-ability-32190
07/18/2023, 11:44 AMmodern-manchester-33562
07/18/2023, 11:45 AM