The fix adds a get_source_files() method to the build_scripts command
and adds the result to the default manifest list.
\item all C source files mentioned in the \option{ext\_modules} or
\option{libraries} options (\XXX{getting C library sources currently
broken -- no get\_source\_files() method in build\_clib.py!})
+\item scripts identified by the \option{scripts} option
\item anything that looks like a test script: \file{test/test*.py}
(currently, the Distutils don't do anything with test scripts except
include them in source distributions, but in the future there will be
('force', 'force'))
self.scripts = self.distribution.scripts
+ def get_source_files(self):
+ return self.scripts
def run (self):
if not self.scripts:
build_clib = self.get_finalized_command('build_clib')
self.filelist.extend(build_clib.get_source_files())
+ if self.distribution.has_scripts():
+ build_scripts = self.get_finalized_command('build_scripts')
+ self.filelist.extend(build_scripts.get_source_files())
+
# add_defaults ()