https://pantsbuild.org/ logo
#general
Title
# general
f

flat-summer-8204

05/11/2022, 4:01 PM
Hi @enough-analyst-54434 . Thanks for the effort on making it clearer. I think I was not clear on the cases I ran as well. Please find the summary below: Use Case 1
requirements.txt
used to generate the lockfile
Copy code
dep-a ==4.2.31 #
On
dep-a
v 4.2.31 , in the
setup.py
,
'python_requires': '>=3.7.0,<3.8.0'
Results: I was playing just changing the
interpreter_constraints
lockfile generated, fails to generate the lockfile with error:
ERROR: No matching distribution found for dep-a==4.2.31
1. If
pants.toml.[python].interpreter_constraints = ["==3.7.11"]
, 2. If
pants.toml.[python].interpreter_constraints = ["==3.7.*"]
, 3. If
pants.toml.[python].interpreter_constraints = [">=3.7.11"]
, Use Case 2
requirements.txt
used to generate the lockfile
Copy code
dep-a ==4.2.32
On
dep-a
v 4.2.32 , in the
setup.py
,
'python_requires': '>=3.7.*1*,<3.8.0'
Results: I was playing just changing the
interpreter_constraints
lockfile generated, fails to generate the lockfile with error:
ERROR: No matching distribution found for dep-a==4.2.32
1. If
pants.toml.[python].interpreter_constraints = ["==3.7.11"]
, 2. If
pants.toml.[python].interpreter_constraints = ["==3.7.*"]
, 3. If
pants.toml.[python].interpreter_constraints = [">=3.7.11"]
, So based on the that, why does it have different results when setting
interpreter_constraints
to
"==3.7.11"
and
">=3.7.11"
? I agree, seems to be a
pex
issue indeed. I will create an issue there to iterate over this.