aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/build_py.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2015-02-18 21:09:01 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2015-02-18 21:09:01 +0100
commitb16a6dd269e4fd283a78834c7f379c977aad0f6e (patch)
treef728b73cf72af48138b76ad0e9a189200c460b9d /setuptools/command/build_py.py
parent47cbdc5228ca5a730518f1cca83df283c54f7249 (diff)
downloadexternal_python_setuptools-b16a6dd269e4fd283a78834c7f379c977aad0f6e.tar.gz
external_python_setuptools-b16a6dd269e4fd283a78834c7f379c977aad0f6e.tar.bz2
external_python_setuptools-b16a6dd269e4fd283a78834c7f379c977aad0f6e.zip
Delete some dead code.
Diffstat (limited to 'setuptools/command/build_py.py')
-rw-r--r--setuptools/command/build_py.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py
index 98080694..a873d54b 100644
--- a/setuptools/command/build_py.py
+++ b/setuptools/command/build_py.py
@@ -136,22 +136,7 @@ class build_py(orig.build_py, Mixin2to3):
mf.setdefault(src_dirs[d], []).append(path)
def get_data_files(self):
- pass # kludge 2.4 for lazy computation
-
- if sys.version < "2.4": # Python 2.4 already has this code
- def get_outputs(self, include_bytecode=1):
- """Return complete list of files copied to the build directory
-
- This includes both '.py' files and data files, as well as '.pyc'
- and '.pyo' files if 'include_bytecode' is true. (This method is
- needed for the 'install_lib' command to do its job properly, and to
- generate a correct installation manifest.)
- """
- return orig.build_py.get_outputs(self, include_bytecode) + [
- os.path.join(build_dir, filename)
- for package, src_dir, build_dir, filenames in self.data_files
- for filename in filenames
- ]
+ pass # Lazily compute data files in _get_data_files() function.
def check_package(self, package, package_dir):
"""Check namespace packages' __init__ for declare_namespace"""