diff --git a/pex/bin/pex.py b/pex/bin/pex.py index 9afe6581c..1dad4327e 100755 --- a/pex/bin/pex.py +++ b/pex/bin/pex.py @@ -570,7 +570,7 @@ def build_pex(args, options, resolver_option_builder): if options.interpreter_constraint: for ic in constraints: pex_builder.add_interpreter_constraint(ic) - raise ValueError(pex_builder.info.build_properties) + resolvables = [Resolvable.get(arg, resolver_option_builder) for arg in args] for requirements_txt in options.requirement_files: diff --git a/tests/test_integration.py b/tests/test_integration.py index 1b66d4f9e..49d78813d 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -350,7 +350,7 @@ def test_interpreter_constraints_to_pex_info_py36(): res = run_pex_command(['--disable-cache', '--interpreter-constraint=>=3', '-o', pex_out_path]) - assert res.return_code is None + res.assert_success() pex_info = get_pex_info(pex_out_path) assert ['>=3'] == pex_info.interpreter_constraints @@ -362,7 +362,7 @@ def test_interpreter_resolution_with_constraint_option(): '--interpreter-constraint=>=2.7', '--interpreter-constraint=<3', '-o', pex_out_path]) - assert res.return_code is None + res.assert_success() def test_interpreter_resolution_with_pex_python_path():