From 4e6d97db1b4364cb184960f477c3e78435332646 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 1 Jul 2024 11:36:55 -0400 Subject: [PATCH] Prefer relative imports for better portability. --- distutils/spawn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distutils/spawn.py b/distutils/spawn.py index 429d1ccb2e..50d30a2761 100644 --- a/distutils/spawn.py +++ b/distutils/spawn.py @@ -31,7 +31,7 @@ def _inject_macos_ver(env: Mapping[str:str] | None) -> Mapping[str:str] | None: if platform.system() != 'Darwin': return env - from distutils.util import MACOSX_VERSION_VAR, get_macosx_target_ver + from .util import MACOSX_VERSION_VAR, get_macosx_target_ver target_ver = get_macosx_target_ver() update = {MACOSX_VERSION_VAR: target_ver} if target_ver else {}