diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-04 12:20:29 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-04 12:20:29 +0400 |
commit | 91c38f0aa0e68e94f51861172862e233716c54d8 (patch) | |
tree | 78571b73ca9dba052a1803bb6bd81bd031616688 /build_files/scons | |
parent | 42bde7eaa1372afac642d3465554b7bc7592ff78 (diff) |
Fix for unix python bundling: config-* directories didn't deleted
This is because of passing config-* to rm command in quotes.
Diffstat (limited to 'build_files/scons')
-rw-r--r-- | build_files/scons/tools/Blender.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py index 8e1bdcb1c62..f5e7b4c0fe7 100644 --- a/build_files/scons/tools/Blender.py +++ b/build_files/scons/tools/Blender.py @@ -625,7 +625,11 @@ def UnixPyBundle(target=None, source=None, env=None): run("rm -rf '%s/distutils'" % py_target) run("rm -rf '%s/lib2to3'" % py_target) run("rm -rf '%s/config'" % py_target) - run("rm -rf '%s/config-*'" % py_target) + + for x in os.listdir(py_target): + if os.path.basename(x).startswith('config-'): + run("rm -rf '%s/%s'" % (py_target, x)) + run("rm -rf '%s/site-packages'" % py_target) run("mkdir '%s/site-packages'" % py_target) # python needs it.' run("rm -rf '%s/idlelib'" % py_target) |