Generate the MANIFEST automatically if it doesn't exit. I'm

not sure if we want to keep doing that, but it's necessary at
the moment to keep stuff working.
This commit is contained in:
Marco Pesenti Gritti 2008-06-13 17:41:16 +02:00
parent 4762897239
commit 3f4a809b80

View File

@ -114,13 +114,19 @@ class Packager(object):
if not os.path.exists(self.config.dist_dir):
os.mkdir(self.config.dist_dir)
class BuildPackager(Packager):
def get_files(self):
return self.config.bundle.get_files()
files = self.config.bundle.get_files()
if not files:
logging.error('No files found, fixing the MANIFEST.')
self.fix_manifest()
files = self.config.bundle.get_files()
return files
def _list_useful_files(self):
ignore_dirs = ['dist', '.git'],
ignore_dirs = ['dist', '.git']
ignore_files = ['.gitignore', 'MANIFEST', '*.pyc', '*~', '*.bak']
return list_files(self.config.source_dir, ignore_dirs, ignore_files)