is there a way to exclude a package being installe...
# general
f
is there a way to exclude a package being installed from the lint / check / test steps? torch is breaking my builds when it tries installing my full universe of deps
when my requirements.pex is generated it breaks but if i build a pex for the parts of the code that use torch it works fine
something gets torch to use a manylinux platform tag that doesn’t exist
p
https://www.pantsbuild.org/docs/reference-python_sources#codedependenciescode
You may exclude dependencies by prefixing with
!
, e.g.
['!helloworld/subdir:lib', '!./sibling.txt']
. Ignores are intended for false positives with dependency inference; otherwise, simply leave off the dependency from the BUILD file.