[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46190] trunk/blender/source/creator/ CMakeLists.txt: CMake: Fix to install numpy (source dir was "hardcoded", rather use PYTHON_NUMPY_PATH), was failing under Debian testing.

Bastien Montagne montagne29 at wanadoo.fr
Wed May 2 16:16:35 CEST 2012


Revision: 46190
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46190
Author:   mont29
Date:     2012-05-02 14:16:35 +0000 (Wed, 02 May 2012)
Log Message:
-----------
CMake: Fix to install numpy (source dir was "hardcoded", rather use PYTHON_NUMPY_PATH), was failing under Debian testing.

Note that there is still a problem, destination ("site-packages") is not in blender's python path, so you have to edit sys.path before being able to import numpy... but at least it installs again.

Modified Paths:
--------------
    trunk/blender/source/creator/CMakeLists.txt

Modified: trunk/blender/source/creator/CMakeLists.txt
===================================================================
--- trunk/blender/source/creator/CMakeLists.txt	2012-05-02 14:06:40 UTC (rev 46189)
+++ trunk/blender/source/creator/CMakeLists.txt	2012-05-02 14:16:35 UTC (rev 46190)
@@ -441,7 +441,7 @@
 			
 			if(WITH_PYTHON_INSTALL_NUMPY)
 				install(
-					DIRECTORY ${PYTHON_LIBPATH}/python${PYTHON_VERSION}/site-packages/numpy
+					DIRECTORY ${PYTHON_NUMPY_PATH}/numpy
 					DESTINATION ${TARGETDIR_VER}/python/${_target_LIB}/python${PYTHON_VERSION}/site-packages
 					PATTERN ".svn" EXCLUDE
 					PATTERN "__pycache__" EXCLUDE           # * any cache *




More information about the Bf-blender-cvs mailing list