Is there a way to control the order packages are i...
# general
b
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
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
gdal
, an earlier version than that one. Installing GDAL is always a fun time, I'll figure something else out!
h
Maybe
gdal[numpy]
will do the right thing?
b
Conclusion: this has nothing to do with pants, but rather my dev container. Thanks for looking!