* cmake / mac - unzip python modules from /lib/release into .blender/python on build
authorMatt Ebb <matt@mke3.net>
Mon, 27 Jul 2009 22:02:47 +0000 (22:02 +0000)
committerMatt Ebb <matt@mke3.net>
Mon, 27 Jul 2009 22:02:47 +0000 (22:02 +0000)
This last commit should make everything right for compiling out of the box with python 3.1 on Mac OS X intel. I've been testing/developing this on 10.5 and I'd be very interested to hear feedback from people on other OS versions! Scons and PPC to go...

source/creator/CMakeLists.txt

index adf0dca0d814ddc7dd381d2f4be657b6afa3421e..48d06f00b7ed4d69ec5ee379a98bcecb96c85a45 100644 (file)
@@ -130,7 +130,8 @@ IF(APPLE)
     COMMAND cp ${CMAKE_SOURCE_DIR}/bin/.blender/.Blanguages ${TARGETDIR}/blender.app/Contents/Resources/
     COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/scripts ${TARGETDIR}/blender.app/Contents/MacOS/.blender/
     COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/ui ${TARGETDIR}/blender.app/Contents/MacOS/.blender/
-    COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/darwin/extra/python ${TARGETDIR}/blender.app/Contents/MacOS/.blender/
+    COMMAND mkdir ${TARGETDIR}/blender.app/Contents/MacOS/.blender/python/
+    COMMAND unzip -q ${LIBDIR}/release/python.zip -d ${TARGETDIR}/blender.app/Contents/MacOS/.blender/python/
     COMMAND find ${TARGETDIR}/blender.app -name CVS -prune -exec rm -rf {} "\;"
     COMMAND find ${TARGETDIR}/blender.app -name CVS.sandboxinfo -prune -exec rm -rf {} "\;"
     COMMAND find ${TARGETDIR}/blender.app -name .DS_Store -prune -exec rm -rf {} "\;"