diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-09-11 18:07:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-11 18:07:45 +0100 |
| commit | b3ef77b2085dc8d66d178a2f7d2047a9ca207309 (patch) | |
| tree | 59b29ad80ec61296572c53e38443fa91d71dd8bf /setuptools/command/install_lib.py | |
| parent | 7f7780e5b572d6fcacd63bf99389dd9f48c5345c (diff) | |
| parent | cb64d3a84fab15aacbdf31a0a5632690ca9f49b2 (diff) | |
| download | python-setuptools-git-b3ef77b2085dc8d66d178a2f7d2047a9ca207309.tar.gz | |
Merge branch 'master' into feature/deterministic-provides-extras
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' |
