aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-06-21 12:09:39 -0400
committerGitHub <noreply@github.com>2020-06-21 12:09:39 -0400
commita8081a19cc48fc285dfd50953bb2c522cb4b8b02 (patch)
tree2a6e46bc7c351a694a2b88a1d722afe1ecca3853
parentdb7ff2e1b0ea51fee56b7f626a548cd2ef590e5e (diff)
downloadexternal_python_setuptools-a8081a19cc48fc285dfd50953bb2c522cb4b8b02.tar.gz
external_python_setuptools-a8081a19cc48fc285dfd50953bb2c522cb4b8b02.tar.bz2
external_python_setuptools-a8081a19cc48fc285dfd50953bb2c522cb4b8b02.zip
Update setuptools/distutils_patch.py
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
-rw-r--r--setuptools/distutils_patch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/distutils_patch.py b/setuptools/distutils_patch.py
index 43b64c0f..1416a7a3 100644
--- a/setuptools/distutils_patch.py
+++ b/setuptools/distutils_patch.py
@@ -22,7 +22,7 @@ def patch_sys_path():
def ensure_local_distutils():
- if 'distutils' in sys.path:
+ if 'distutils' in sys.modules:
raise RuntimeError("Distutils must not be imported before setuptools")
with patch_sys_path():
importlib.import_module('distutils')