diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2019-10-28 22:06:44 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-10-28 22:06:44 -0400 |
commit | 82689e1aa8e6548f26f2ce3bcd069411cb39bfcf (patch) | |
tree | e1e43a0857aca02e11fde47fc9bd6d475c9b1f67 /setuptools/py34compat.py | |
parent | e1f340b53f0088993b16e19999a4d6b0e86a9991 (diff) | |
download | external_python_setuptools-82689e1aa8e6548f26f2ce3bcd069411cb39bfcf.tar.gz external_python_setuptools-82689e1aa8e6548f26f2ce3bcd069411cb39bfcf.tar.bz2 external_python_setuptools-82689e1aa8e6548f26f2ce3bcd069411cb39bfcf.zip |
Ensure importlib.util is imported on Python 3.5
Diffstat (limited to 'setuptools/py34compat.py')
-rw-r--r-- | setuptools/py34compat.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/py34compat.py b/setuptools/py34compat.py index 54157a63..3ad91722 100644 --- a/setuptools/py34compat.py +++ b/setuptools/py34compat.py @@ -1,5 +1,10 @@ import importlib +try: + import importlib.util +except ImportError: + pass + try: module_from_spec = importlib.util.module_from_spec |