fresh-architect-74417
04/27/2021, 7:34 PMhundreds-father-404
04/27/2021, 7:34 PMfresh-architect-74417
04/27/2021, 7:36 PMhundreds-father-404
04/27/2021, 7:39 PM!
ignores. See the tooltip at https://www.pantsbuild.org/docs/targets#dependencies-and-dependency-inferencehundreds-father-404
04/27/2021, 7:40 PM./pants dependencies
to get the deps that were inferred and should be put in the BUILD file, then run ./pants dependencies
again to double check the exclude workedfresh-architect-74417
04/27/2021, 7:48 PMhappy-kitchen-89482
04/27/2021, 8:11 PMimport
statementshappy-kitchen-89482
04/27/2021, 8:11 PMfresh-architect-74417
04/27/2021, 8:26 PMif env == 'dev':
import dev_constants
We don't include it in the BUILD file so it doesn't go to our production code.
We also have code that uses importlib to dynamically import some of the libraries on the fly. I want to have the ability to disable or enable imports in the build file.
I will try to exclude them and see if they are going to work better.happy-kitchen-89482
04/27/2021, 11:54 PMhappy-kitchen-89482
04/27/2021, 11:54 PMcurved-television-6568
04/28/2021, 8:11 AMdev_*
) that could help too (for a generic exclude thingy…)