better-van-82973
07/07/2023, 2:56 PMPANTS_SOURCE=../../pants pants check ::
I get the following error:
InvalidLockfileError: You are consuming `Scrapy<3.0.0,>=2.6.1`, `alembic<2.0.0,>=1.11.1`, and 44 other requirements from the `python-default` lockfile at 3rdparty/python/default.lock with incompatible inputs.
- The inputs use interpreter constraints (`CPython==3.9.*`) that are not a subset of those used to generate the lockfile (`CPython<3.11,>=3.10`).
But the thing is, I already changed the pants.toml
file in the pants repo to use Python 3.10 as well as the dependent files outlined in the comment:
[python]
# N.B.: When upgrading to a new Python version, you must update the Pants
# `python_distribution` targets, currently:
# + src/python/pants:pants-packaged
# + src/python/pants/testutil:testutil_wheel
# And update the PythonBuildStandalone version/URL:
# + src/python/pants/core/subsystems/python_bootstrap.py
interpreter_constraints = ["CPython==3.10.*"]
Did I miss something here?bitter-ability-32190
07/07/2023, 2:58 PMscie-pants
or other lockfiles/places 🤔better-van-82973
07/07/2023, 2:59 PMbitter-ability-32190
07/07/2023, 3:00 PMgenerate-lockfiles
in the Pants repo with the default resolve?bitter-ability-32190
07/07/2023, 3:00 PM./pants generate-lockfiles --resolve=python-default
better-van-82973
07/07/2023, 3:05 PMpants.toml
, the lockfile always comes out with this:
// "valid_for_interpreter_constraints": [
// "CPython==3.9.*"
// ],
So I don’t know where the Python version for the lockfile is being controlled from, but I’ll try to find itbitter-ability-32190
07/07/2023, 3:07 PMbuild-support/bin/generate_builtin_lockfiles.py
?better-van-82973
07/07/2023, 3:07 PMbetter-van-82973
07/07/2023, 3:07 PM