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>2013-04-23 17:51:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-23 17:51:20 +0400
commit03905043c63c42e2bd79e0d58f4ae1a7fc9d47f3 (patch)
tree1515c674bc87d77305e7dd5aa2e8bc2d68cbcc43 /source/creator
parent8f486bdadc5824456c96d352d837ad0b7275f936 (diff)
minor changes to get numpy working with locally bundled python.
- enable site-packages for bundled python distrobution, py3.2 had a problem where it would try to parse headers we didnt include, but its resolved now. - workaround for glitch I was having on arch-linux where lib64 would be be used for the bundled python directory when it was just a symlink.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 6455f9165ce..d5407fe38a2 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -423,11 +423,15 @@ if(UNIX AND NOT APPLE)
# on some platforms (like openSUSE) Python is linked
# to be used from lib64 folder.
# determine this from Python's libraries path
- if(${PYTHON_LIBPATH} MATCHES "lib64$")
+ #
+ # ugh, its possible 'lib64' is just a symlink to 'lib' which causes incorrect use of 'lib64'
+ get_filename_component(_pypath_real ${PYTHON_LIBPATH} REALPATH)
+ if(${_pypath_real} MATCHES "lib64$")
set(_target_LIB "lib64")
else()
set(_target_LIB "lib")
endif()
+ unset(_pypath_real)
# Copy the systems python into the install directory
# Scons copy in tools/Blender.py