From 24719f2fb9d6dde67d4e8148c39d730d27d5a1d2 Mon Sep 17 00:00:00 2001 From: paugier Date: Wed, 23 Oct 2024 17:17:47 +0200 Subject: [PATCH] Better cleanup PYTHONPATH for Mercurial calls (support for PDM) --- src/setuptools_scm/_run_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setuptools_scm/_run_cmd.py b/src/setuptools_scm/_run_cmd.py index b0617abb..42904cfb 100644 --- a/src/setuptools_scm/_run_cmd.py +++ b/src/setuptools_scm/_run_cmd.py @@ -117,7 +117,7 @@ def avoid_pip_isolation(env: Mapping[str, str]) -> dict[str, str]: [ path for path in new_env["PYTHONPATH"].split(os.pathsep) - if "pip-build-env-" not in path + if "-build-env-" not in path ] ) return new_env