diff --git a/setup/package.py b/setup/package.py index 6d9fdb366e8..9ca97d19dd9 100755 --- a/setup/package.py +++ b/setup/package.py @@ -241,8 +241,10 @@ class KVMWinTestExe(KVM): #---------------------------------------------------------- # Stage: building #---------------------------------------------------------- -def _prepare_build_dir(o): +def _prepare_build_dir(o, win32=False): cmd = ['rsync', '-a', '--exclude', '.git', '--exclude', '*.pyc', '--exclude', '*.pyo'] + if not win32: + cmd += ['--exclude', 'setup/win32'] system(cmd + ['%s/' % o.odoo_dir, o.build_dir]) for i in glob(join(o.build_dir, 'addons/*')): if i.split(os.path.sep)[-1] not in ADDONS_NOT_TO_PUBLISH: @@ -458,6 +460,7 @@ def main(): except Exception, e: print("Won't publish the rpm release.\n Exception: %s" % str(e)) if not o.no_windows: + _prepare_build_dir(o, win32=True) build_exe(o) try: if not o.no_testing: