<#20697 Defining a variable to use in multiple bui...
# github-notifications
c
#20697 Defining a variable to use in multiple build files New discussion created by gudjonragnar I am looking at using Pants to manage a monorepo at work that primarily works with lambdas. I am facing this issue: #15454 where boto3, boto3-stubs etc. are included in the lambda zip file. I found a workaround in some issue that I lost track of that essentially boils down to something like this:
Copy code
python_awslambda(
    name="awslambda",
    handler="lambda.py:handler",
    handler="my_lambda_function.py:lambda_handler",
    dependencies=["!!3rdparty/python:poetry#boto3", "!!3rdparty/python:poetry#:boto3-stubs"],
)
Since I want to ignore a set of dependencies across all of the lambdas I was hoping to define the dependencies to ignore somewhere "globally" and reference them in each BUILD file. Is that an option? pantsbuild/pants