diff options
Diffstat (limited to 'tools/Blender.py')
-rw-r--r-- | tools/Blender.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/Blender.py b/tools/Blender.py index 94ad485e176..4dad70bbef5 100644 --- a/tools/Blender.py +++ b/tools/Blender.py @@ -545,6 +545,14 @@ def UnixPyBundle(target=None, source=None, env=None): py_src = env.subst( env['BF_PYTHON_LIBPATH'] + '/python'+env['BF_PYTHON_VERSION'] ) py_target = env.subst( dir + '/python/lib/python'+env['BF_PYTHON_VERSION'] ) + # This is a bit weak, but dont install if its been installed before, makes rebuilds quite slow. + if os.path.exists(py_target): + print 'Using existing python from:' + print '\t"%s"' % py_target + print '\t(skipping copy)\n' + return + + # Copied from source/creator/CMakeLists.txt, keep in sync. print 'Install python from:' print '\t"%s" into...' % py_src |