Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-04 17:20:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-04 17:22:51 +0400
commitc436c78de1d2f6fcac46e69c5c81ca2af5f839e5 (patch)
tree2933432fa57db2852b601c47f0f0f187b4474191 /build_files
parent6ebbcbd5df45c9a5953a3f6d3c068310fea58d7a (diff)
Build system support for numpy on ms-windows
Diffstat (limited to 'build_files')
-rw-r--r--build_files/scons/tools/Blender.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py
index cc60b88b035..2015bb4c8a5 100644
--- a/build_files/scons/tools/Blender.py
+++ b/build_files/scons/tools/Blender.py
@@ -626,6 +626,24 @@ def WinPyBundle(target=None, source=None, env=None):
print "Unpacking '" + py_tar + "' to '" + py_target + "'"
untar_pybundle(py_tar,py_target,exclude_re)
+ # -------------
+ # Extract Numpy
+ py_tar = env.subst(env['LCGDIR'])
+ if py_tar[0] == '#':
+ py_tar = py_tar[1:]
+ py_tar += '/release/python' + env['BF_PYTHON_VERSION'].replace('.','') + '_numpy_1.8.tar.gz'
+
+ py_target = env.subst(env['BF_INSTALLDIR'])
+ if py_target[0] == '#':
+ py_target = py_target[1:]
+ 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)
+
+
def my_appit_print(target, source, env):
a = '%s' % (target[0])
d, f = os.path.split(a)