aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install_lib.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-10-26 16:36:07 -0400
committerJason R. Coombs <jaraco@jaraco.com>2019-10-26 16:36:07 -0400
commitc11270aa6bffd8913c6e074f09b9d920c8f19002 (patch)
tree5c97e2e05dcabb9b13e954528fa6783740f68fb6 /setuptools/command/install_lib.py
parent6a3674a18d22dbea4d6b513b8e8a7ac28ada5eba (diff)
parent297f2adceda3af402fc08311e42505c8cdc9c54b (diff)
downloadexternal_python_setuptools-c11270aa6bffd8913c6e074f09b9d920c8f19002.tar.gz
external_python_setuptools-c11270aa6bffd8913c6e074f09b9d920c8f19002.tar.bz2
external_python_setuptools-c11270aa6bffd8913c6e074f09b9d920c8f19002.zip
Merge branch 'master' into fix/1700
Diffstat (limited to 'setuptools/command/install_lib.py')
-rw-r--r--setuptools/command/install_lib.py6
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'