diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-23 19:51:41 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-04-23 19:51:41 +0400 |
commit | aa206bcd14ff1c32a38dd18398ec971e60c411b1 (patch) | |
tree | 02f393dd614eeb10480ad6ea16595f0615808d0c /build_files/scons/tools | |
parent | 6ec2707ff1b57b6b14bd0678737c6e184b8d087a (diff) |
Strip unneeded folders and files from numpy
Diffstat (limited to 'build_files/scons/tools')
-rw-r--r-- | build_files/scons/tools/Blender.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |