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

purple-plastic-57801

05/01/2023, 8:46 PM
If I have a wheel file in my repository (git lfs under the hood).. how can I install that into pants?
Instead of checked in can this be a http_source resource? 🤔
h

happy-kitchen-89482

05/01/2023, 11:48 PM
Yeah, that is how you'd handle a local wheel
Re serving this wheel over http, you could either use
find_links
to point to a links page you create, or serve from a custom PyPI-like index
p

purple-plastic-57801

05/01/2023, 11:51 PM
Interesting idea.
When setting a local repository as a dependency what does the target look like? from my build requirements I get things like this..
Copy code
.build/requirements:reqs-dev#pytest
If I had say third_party/extwhl/BUILD with a local repository defined. What would the dependency look like?
Copy code
third_party/extwhl:libcamera
?
Also is there a way to declare a depdency on another dependency? I have a whl for libcamera, and scicamera needs libcamrea.
h

happy-kitchen-89482

05/02/2023, 2:04 AM
And then specify requirements the normal way, e.g.,
libcamera==x.y.z
This is the same as you would do for pip
3 Views