From ed86bf54e25971fee0fe1187691cc8f2fc40bdf0 Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 27 Oct 2023 16:04:45 +0800 Subject: [PATCH] Un-deprecate `MATURIN_PEP517_ARGS` env var Poetry doesn't support `--config-settings` yet, and sometimes using a env var is easier than `--config-settings build-args='xxx'`. --- maturin/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/maturin/__init__.py b/maturin/__init__.py index 3a3238326..07753679f 100644 --- a/maturin/__init__.py +++ b/maturin/__init__.py @@ -36,8 +36,6 @@ def get_maturin_pep517_args(config_settings: Optional[Mapping[str, Any]] = None) build_args = config_settings.get("build-args") if config_settings else None if build_args is None: env_args = os.getenv("MATURIN_PEP517_ARGS", "") - if env_args: - print(f"'MATURIN_PEP517_ARGS' is deprecated, use `--config-settings build-args='{env_args}'` instead.") args = shlex.split(env_args) elif isinstance(build_args, str): args = shlex.split(build_args)