Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back interpreter_constraints field to pex_binary and python_awslambda #11979

Merged
merged 2 commits into from Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/python/pants/backend/awslambda/python/target_types.py
Expand Up @@ -8,6 +8,7 @@

from pants.backend.python.dependency_inference.module_mapper import PythonModule, PythonModuleOwners
from pants.backend.python.dependency_inference.rules import PythonInferSubsystem, import_rules
from pants.backend.python.target_types import InterpreterConstraintsField
from pants.core.goals.package import OutputPathField
from pants.engine.addresses import Address
from pants.engine.fs import GlobMatchErrorBehavior, PathGlobs, Paths
Expand Down Expand Up @@ -189,6 +190,7 @@ class PythonAWSLambda(Target):
core_fields = (
*COMMON_TARGET_FIELDS,
OutputPathField,
InterpreterConstraintsField,
PythonAwsLambdaDependencies,
PythonAwsLambdaHandlerField,
PythonAwsLambdaRuntime,
Expand Down
1 change: 1 addition & 0 deletions src/python/pants/backend/python/target_types.py
Expand Up @@ -372,6 +372,7 @@ class PexBinary(Target):
core_fields = (
*COMMON_TARGET_FIELDS,
OutputPathField,
InterpreterConstraintsField,
PexBinaryDependencies,
PexEntryPointField,
PexPlatformsField,
Expand Down