Commit b712de5a authored by Martin v. Löwis's avatar Martin v. Löwis

Move initialization of updated_files into finalize_options

--HG--
branch : distribute
extra : rebase_source : 9961dacb889d0707d3d0fa67168f71eb6b577373
parent 5b568886
...@@ -51,13 +51,13 @@ class build_py(_build_py, Mixin2to3): ...@@ -51,13 +51,13 @@ class build_py(_build_py, Mixin2to3):
self.package_data = self.distribution.package_data self.package_data = self.distribution.package_data
self.exclude_package_data = self.distribution.exclude_package_data or {} self.exclude_package_data = self.distribution.exclude_package_data or {}
if 'data_files' in self.__dict__: del self.__dict__['data_files'] if 'data_files' in self.__dict__: del self.__dict__['data_files']
self.__updated_files = []
def run(self): def run(self):
"""Build modules, packages, and copy data files to build directory""" """Build modules, packages, and copy data files to build directory"""
if not self.py_modules and not self.packages: if not self.py_modules and not self.packages:
return return
self.__updated_files = []
if self.py_modules: if self.py_modules:
self.build_modules() self.build_modules()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment