PROJECT_COPY_FILES = PROJECT_COPY_FILES + [
'doc/myproj.html',
'!*settings.py',
'settings.py',
'win32_settings.py',
'!django/*',
'!bin/*',
'bin/sqlite3.exe',
'bin/migration/*',
'!bin/migration/data/*',
'!*.conf',
'!db/*',
'!updates/*',
]
PYTHON_COPY_FILES = PYTHON_COPY_FILES + [
'Lib/site-packages/pywin32.pth',
'Lib/site-packages/win32/*',
'!Lib/site-packages/win32/Demos/*',
'!Lib/site-packages/win32/include/*',
'!Lib/site-packages/win32/scripts/*',
'!Lib/site-packages/win32/test/*',
]
def post_build():
# A couple of files need to be renamed in target distribution.
copy_dist_files('db/myproj_demo.db', 'db/myproj_production.db')
copy_dist_files('win32_runner.conf', 'runner.conf')
# Copy dupdater script from dupdater project directory.
copy_dist_files('../../dupdater/trunk/dupdater.pyc', 'bin')
# Because updater.py cannot read .pyc files.
copy_dist_files('updates/*.py', 'updates')