diff --git a/python/pip_install/extract_wheels/lib/arguments.py b/python/pip_install/extract_wheels/lib/arguments.py index 46d08a8eb5..63d2afb804 100644 --- a/python/pip_install/extract_wheels/lib/arguments.py +++ b/python/pip_install/extract_wheels/lib/arguments.py @@ -35,11 +35,10 @@ def deserialize_structured_args(args): Args: args: dict of parsed command line arguments """ - structured_args = ("extra_pip_args", "pip_data_exclude", "environment") + structured_args = ("extra_pip_args", "pip_data_exclude", "environment", "pip_platform_definitions") for arg_name in structured_args: if args.get(arg_name) is not None: args[arg_name] = json.loads(args[arg_name])["arg"] else: args[arg_name] = [] return args - diff --git a/python/pip_install/parse_requirements_to_bzl/__init__.py b/python/pip_install/parse_requirements_to_bzl/__init__.py index 0a71c68e99..3f08c1a198 100644 --- a/python/pip_install/parse_requirements_to_bzl/__init__.py +++ b/python/pip_install/parse_requirements_to_bzl/__init__.py @@ -63,20 +63,6 @@ def repo_names_and_requirements( return NamesAndRequirements(whls, aliases) -def deserialize_structured_args(args): - """Deserialize structured arguments passed from the starlark rules. - Args: - args: dict of parsed command line arguments - """ - structured_args = ("extra_pip_args", "pip_data_exclude", "pip_platform_definitions") - for arg_name in structured_args: - if args.get(arg_name) is not None: - args[arg_name] = json.loads(args[arg_name])["args"] - else: - args[arg_name] = [] - return args - - def generate_parsed_requirements_contents(all_args: argparse.Namespace) -> str: """ Parse each requirement from the requirements_lock file, and prepare arguments for each