diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-12-29 12:47:31 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-12-29 12:47:31 -0500 |
| commit | a5b66a8581b758aff763765857359ef540631202 (patch) | |
| tree | 9404571514fbe550c98a939bd4458d97e1bf1dd2 /setuptools/command/install_lib.py | |
| parent | d53e024af2f5d8f3a4a36588c3dc004d156bc830 (diff) | |
| parent | e6bdf25f6ab5bf4d32b0f9affa0ab98ea35f3a29 (diff) | |
| download | python-setuptools-git-a5b66a8581b758aff763765857359ef540631202.tar.gz | |
Merge branch 'master' into feature/include-pyproject.toml
Diffstat (limited to 'setuptools/command/install_lib.py')
| -rw-r--r-- | setuptools/command/install_lib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/install_lib.py b/setuptools/command/install_lib.py index 2b31c3e3..07d65933 100644 --- a/setuptools/command/install_lib.py +++ b/setuptools/command/install_lib.py @@ -1,5 +1,5 @@ import os -import imp +import sys from itertools import product, starmap import distutils.command.install_lib as orig @@ -74,10 +74,10 @@ class install_lib(orig.install_lib): yield '__init__.pyc' yield '__init__.pyo' - if not hasattr(imp, 'get_tag'): + if not hasattr(sys, 'implementation'): return - base = os.path.join('__pycache__', '__init__.' + imp.get_tag()) + base = os.path.join('__pycache__', '__init__.' + sys.implementation.cache_tag) yield base + '.pyc' yield base + '.pyo' yield base + '.opt-1.pyc' |
