Hello. I am trying to generate a lockfile from a `...
# general
f
Hello. I am trying to generate a lockfile from a
pyproject.toml
file in which I have the following requirement:
Copy code
snowflake-connector-python = {git = "<https://github.com/snowflakedb/snowflake-connector-python.git>", rev = "36e20a072fee7167432b6a42e3f7dcc91e2406a1", extras = ["pandas", "secure-local-storage"]}
I have no problem when I try to install this using pip or Poetry, but when I run
pants generate-lockfiles
, it runs without finishing and without printing any log. I don't know how to debug this. Does someone have a suggestion?
I found a solution by building the wheel manually and declaring a local requirement.
e
Wheels are good to speed things up, but you might also try setting
[python] pip_version
to the newest possible in Pants 2.16.+: https://www.pantsbuild.org/v2.16/docs/reference-python#pip_version - Pip has sped up quite a bit since the default 20.3.4 (3 years old) Pants / Pex use. Additionally, you want to make sure you're setting reasonable
interpreter_constraints
. If they are un-necessarily wide, that will slow down the locking.