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
commit8993c7b73cbcaed6afb50e28a80139506f794d8d (patch)
treeaa8b67c08c224efd7246463f61059c6b652e6962 /setuptools/command/install_lib.py
parent0de041b81f687f94391f7345f8164313723b93ef (diff)
downloadpython-setuptools-bitbucket-8993c7b73cbcaed6afb50e28a80139506f794d8d.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,