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

fancy-daybreak-62348

03/09/2023, 1:30 AM
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

polite-garden-50641

03/09/2023, 8:41 PM
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.
3 Views