aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/build_ext.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-23 10:28:35 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-23 10:28:35 -0500
commit82390398562436f2928083066d8b1d2e786643fc (patch)
treedf0e55f80f7092e2d9921f6d35862578ae9cfa5b /setuptools/command/build_ext.py
parentdf765dcb6204366f4662004217997af35590fb9b (diff)
downloadexternal_python_setuptools-82390398562436f2928083066d8b1d2e786643fc.tar.gz
external_python_setuptools-82390398562436f2928083066d8b1d2e786643fc.tar.bz2
external_python_setuptools-82390398562436f2928083066d8b1d2e786643fc.zip
Add comments for clarity.
Diffstat (limited to 'setuptools/command/build_ext.py')
-rw-r--r--setuptools/command/build_ext.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py
index 2df3bc70..f0913115 100644
--- a/setuptools/command/build_ext.py
+++ b/setuptools/command/build_ext.py
@@ -200,11 +200,13 @@ class build_ext(_build_ext):
return _build_ext.get_outputs(self) + self.__get_stubs_outputs()
def __get_stubs_outputs(self):
+ # assemble the base name for each extension that needs a stub
ns_ext_bases = (
os.path.join(self.build_lib, *ext._full_name.split('.'))
for ext in self.extensions
if ext._needs_stub
)
+ # pair each base with the extension
pairs = itertools.product(ns_ext_bases, self.__get_output_extensions())
return (base + fnext for base, fnext in pairs)