diff --git a/src/python/pants/backend/python/tasks/python_binary_create.py b/src/python/pants/backend/python/tasks/python_binary_create.py index 0aa46037489..dc30234b909 100644 --- a/src/python/pants/backend/python/tasks/python_binary_create.py +++ b/src/python/pants/backend/python/tasks/python_binary_create.py @@ -143,7 +143,7 @@ def _create_binary(self, binary_tgt, results_dir): # Add global and target-level interpreter compatibility constraints to pex info. pex_builder.add_interpreter_constraints_from(constraint_tgts) - pex_builder.add_interpreter_constraints(PythonSetup.global_instance().interpreter_constraints) + pex_builder.add_interpreter_constraint(PythonSetup.global_instance().interpreter_constraints) # Dump everything into the builder's chroot. for tgt in source_tgts: