Skip to content

Commit

Permalink
Un-deprecate MATURIN_PEP517_ARGS env var (#1820)
Browse files Browse the repository at this point in the history
Poetry doesn't support `--config-settings` yet, and sometimes using a env var is easier than `--config-settings build-args='xxx'`.
  • Loading branch information
messense authored Oct 27, 2023
1 parent c138d63 commit 1369b27
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions maturin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1369b27

Please sign in to comment.