summaryrefslogtreecommitdiff
path: root/setuptools/command/install_lib.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-26 10:06:35 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-26 10:06:35 -0400
commitf6f409ac7dc06be2524211a717182cd96b21e13f (patch)
tree565073bfedf56ea1648429f48487e594feec0e36 /setuptools/command/install_lib.py
parent4e5bbb8e5175b35f8cbaace630bd0dd3091d6946 (diff)
downloadpython-setuptools-git-f6f409ac7dc06be2524211a717182cd96b21e13f.tar.gz
Extract calculation of base path
Diffstat (limited to 'setuptools/command/install_lib.py')
-rw-r--r--setuptools/command/install_lib.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/install_lib.py b/setuptools/command/install_lib.py
index 3f39d945..d1c91b7b 100644
--- a/setuptools/command/install_lib.py
+++ b/setuptools/command/install_lib.py
@@ -39,8 +39,9 @@ class install_lib(orig.install_lib):
if not hasattr(imp, 'get_tag'):
return
- yield os.path.join('__pycache__', '__init__.' + imp.get_tag() + '.pyc')
- yield os.path.join('__pycache__', '__init__.' + imp.get_tag() + '.pyo')
+ base = os.path.join('__pycache__', '__init__.' + imp.get_tag())
+ yield base + '.pyc'
+ yield base + '.pyo'
def copy_tree(
self, infile, outfile,