diff options
Diffstat (limited to 'build_files/scons/tools/Blender.py')
-rw-r--r-- | build_files/scons/tools/Blender.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py index 2015bb4c8a5..3684401d0cc 100644 --- a/build_files/scons/tools/Blender.py +++ b/build_files/scons/tools/Blender.py @@ -643,6 +643,21 @@ def WinPyBundle(target=None, source=None, env=None): print("Unpacking '" + py_tar + "' to '" + py_target + "'") untar_pybundle(py_tar, py_target, exclude_re) + # -------------------- + # Copy 'site-packages' + py_dir = env.subst(env['LCGDIR']) + if py_dir[0] == '#': + py_dir = py_dir[1:] + py_dir += '/release/site-packages' + # grr, we have to do one by one because the dir exists + for f in os.listdir(py_dir): + fn_src = os.path.join(py_dir, f) + fn_dst = os.path.join(py_target, f) + + shutil.rmtree(fn_dst, False, printexception) + shutil.copytree(fn_src, fn_dst) + + def my_appit_print(target, source, env): a = '%s' % (target[0]) |