[Bf-blender-cvs] [d1009bd] master: Windows: Disable Numpy for now, we miss the libs for Python 3.4.

Thomas Dinges noreply at git.blender.org
Wed Apr 30 16:50:00 CEST 2014


Commit: d1009bdad5f7a770777be0899841554420c34102
Author: Thomas Dinges
Date:   Wed Apr 30 16:49:28 2014 +0200
https://developer.blender.org/rBd1009bdad5f7a770777be0899841554420c34102

Windows: Disable Numpy for now, we miss the libs for Python 3.4.

Also make the flag WITH_BF_PYTHON_INSTALL_NUMPY flag actually work on Windows.

===================================================================

M	build_files/scons/config/win32-vc-config.py
M	build_files/scons/config/win64-vc-config.py
M	build_files/scons/tools/Blender.py

===================================================================

diff --git a/build_files/scons/config/win32-vc-config.py b/build_files/scons/config/win32-vc-config.py
index 16b105d..54ab4af 100644
--- a/build_files/scons/config/win32-vc-config.py
+++ b/build_files/scons/config/win32-vc-config.py
@@ -38,6 +38,8 @@ BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}'
 BF_PYTHON_DLL = '${BF_PYTHON_LIB}'
 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
 
+WITH_BF_PYTHON_INSTALL_NUMPY = False
+
 WITH_BF_OPENAL = True
 BF_OPENAL = LIBDIR + '/openal'
 BF_OPENAL_INC = '${BF_OPENAL}/include '
diff --git a/build_files/scons/config/win64-vc-config.py b/build_files/scons/config/win64-vc-config.py
index 3ec284e..87af137 100644
--- a/build_files/scons/config/win64-vc-config.py
+++ b/build_files/scons/config/win64-vc-config.py
@@ -39,6 +39,8 @@ BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION[0]}${BF_PYTHON_VERSION[2]}'
 BF_PYTHON_DLL = '${BF_PYTHON_LIB}'
 BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
 
+WITH_BF_PYTHON_INSTALL_NUMPY = False
+
 WITH_BF_OPENAL = True
 BF_OPENAL = LIBDIR + '/openal'
 BF_OPENAL_INC = '${BF_OPENAL}/include '
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py
index 29e04ba..496f90d 100644
--- a/build_files/scons/tools/Blender.py
+++ b/build_files/scons/tools/Blender.py
@@ -629,16 +629,17 @@ def WinPyBundle(target=None, source=None, env=None):
 
     # -------------
     # Extract Numpy
-    py_tar = env.subst(env['LCGDIR']).lstrip("#")
-    py_tar += '/release/python' + env['BF_PYTHON_VERSION'].replace('.','') + '_numpy_1.8.tar.gz'
-
-    py_target = env.subst(env['BF_INSTALLDIR']).lstrip("#")
-    py_target = os.path.join(py_target, VERSION, 'python', 'lib', 'site-packages')
-    # rmtree handled above
-    # files are cleaned up in their archive
-    exclude_re = []
-    print("Unpacking '" + py_tar + "' to '" + py_target + "'")
-    untar_pybundle(py_tar, py_target, exclude_re)
+    if env['WITH_BF_PYTHON_INSTALL_NUMPY']:
+        py_tar = env.subst(env['LCGDIR']).lstrip("#")
+        py_tar += '/release/python' + env['BF_PYTHON_VERSION'].replace('.','') + '_numpy_1.8.tar.gz'
+
+        py_target = env.subst(env['BF_INSTALLDIR']).lstrip("#")
+        py_target = os.path.join(py_target, VERSION, 'python', 'lib', 'site-packages')
+        # rmtree handled above
+        # files are cleaned up in their archive
+        exclude_re = []
+        print("Unpacking '" + py_tar + "' to '" + py_target + "'")
+        untar_pybundle(py_tar, py_target, exclude_re)
 
     # --------------------
     # Copy 'site-packages'




More information about the Bf-blender-cvs mailing list