summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-01-06 14:41:02 +0100
committerAaron Bohy <aab@odoo.com>2015-01-23 11:11:26 +0100
commit91026647d43358594df0e17f3d408a3aa415c665 (patch)
tree249d351496262d96cd16698611e3355e0a0f1d62 /setup
parent95402dee813b4b9ce3ab0c21a18b3bf4dbf431b2 (diff)
[FIX] Packaging: Debian: do not include setup/win32 in sources
This prevents to put postgresql-9.3.5-1-windows.exe, node.exe and wkhtmltopdf.exe in the tar.gz produced with debhelper, saving approx. 60MB.
Diffstat (limited to 'setup')
-rwxr-xr-xsetup/package.py5
1 files changed, 4 insertions, 1 deletions
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: