diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:16:45 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-23 10:16:45 -0500 |
commit | b19c06058c720418db8a4496410cb82cc3526d54 (patch) | |
tree | cbc900549e4be3dc4e6d03da3b148e00b8a85493 | |
parent | 2050af11f662a28f9c2c834552c195d90a5ac73e (diff) | |
download | external_python_setuptools-b19c06058c720418db8a4496410cb82cc3526d54.tar.gz external_python_setuptools-b19c06058c720418db8a4496410cb82cc3526d54.tar.bz2 external_python_setuptools-b19c06058c720418db8a4496410cb82cc3526d54.zip |
Extract method for clarity.
-rw-r--r-- | setuptools/command/build_ext.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index b5c2738c..c85351b4 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -196,7 +196,10 @@ class build_ext(_build_ext): return any(pkg + libname in libnames for libname in ext.libraries) def get_outputs(self): - outputs = _build_ext.get_outputs(self) + return _build_ext.get_outputs(self) + self.__get_stubs_outputs() + + def __get_stubs_outputs(self): + outputs = [] fn_exts = ['.py', '.pyc'] if self.get_finalized_command('build_py').optimize: fn_exts.append('.pyo') |