Skip to content

Commit 24719f2

Browse files
committed
Better cleanup PYTHONPATH for Mercurial calls (support for PDM)
1 parent be34dd1 commit 24719f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setuptools_scm/_run_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def avoid_pip_isolation(env: Mapping[str, str]) -> dict[str, str]:
117117
[
118118
path
119119
for path in new_env["PYTHONPATH"].split(os.pathsep)
120-
if "pip-build-env-" not in path
120+
if "-build-env-" not in path
121121
]
122122
)
123123
return new_env

0 commit comments

Comments
 (0)