COLLADA branch: merge from trunk -r 24522:24758.
[blender-staging.git] / tools / Blender.py
index 2b3f405ed8b205ad5afb270a52cae9d359687348..097549a08c7ae0739c88c8c36af2a7cf15b758b5 100644 (file)
@@ -546,6 +546,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