From aa206bcd14ff1c32a38dd18398ec971e60c411b1 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 23 Apr 2013 15:51:41 +0000 Subject: Strip unneeded folders and files from numpy --- build_files/scons/tools/Blender.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build_files') diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py index 6058ac04e62..51a38ee75a8 100644 --- a/build_files/scons/tools/Blender.py +++ b/build_files/scons/tools/Blender.py @@ -762,6 +762,14 @@ def UnixPyBundle(target=None, source=None, env=None): print '\t"%s"\n' % numpy_target run("cp -R '%s' '%s'" % (numpy_src, os.path.dirname(numpy_target))) + run("rm -rf '%s/distutils'" % numpy_target) + run("rm -rf '%s/oldnumeric'" % numpy_target) + run("rm -rf '%s/doc'" % numpy_target) + run("rm -rf '%s/tests'" % numpy_target) + run("rm -rf '%s/f2py'" % numpy_target) + run("find '%s' -type d -name 'include' -prune -exec rm -rf {} ';'" % numpy_target) + run("find '%s' -type d -name '*.h' -prune -exec rm -rf {} ';'" % numpy_target) + run("find '%s' -type d -name '*.a' -prune -exec rm -rf {} ';'" % numpy_target) else: print 'Failed to find numpy at %s, skipping copying' % numpy_src -- cgit v1.2.3