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

brash-student-40401

11/02/2022, 9:29 PM
Is there a way to control the order packages are installed? I've got a PEX that uses GDAL, which needs to be installed after numpy to avoid a known issue (see here for details). I tried reordering my
requirements.txt
and regenerating the lockfile, but it seems to put things in alphabetical order. I've got them ordered "correctly" in my
dependencies
too. How can I make sure that Numpy is installing first?
h

happy-kitchen-89482

11/02/2022, 10:06 PM
I don’t think there is a way to do so at the moment. I don’t think even pip supports this, except by running pip multiple times. But if you had a single requirements.txt that you passed to pip, you’d have the same issue, I believe.
Are you installing
gdal
or
gdal[numpy]
?
b

brash-student-40401

11/02/2022, 10:10 PM
gdal
, an earlier version than that one. Installing GDAL is always a fun time, I'll figure something else out!
h

happy-kitchen-89482

11/02/2022, 11:01 PM
Maybe
gdal[numpy]
will do the right thing?
b

brash-student-40401

11/03/2022, 3:29 AM
Conclusion: this has nothing to do with pants, but rather my dev container. Thanks for looking!