Build system support for numpy on ms-windows

This commit is contained in:
Campbell Barton
2014-03-05 00:20:11 +11:00
parent 6ebbcbd5df
commit c436c78de1
3 changed files with 31 additions and 1 deletions

View File

@@ -576,6 +576,16 @@ elseif(WIN32)
"
)
if(WITH_PYTHON_INSTALL_NUMPY)
install(
CODE
"
execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \"${TARGETDIR_VER}/python/lib/site-packages\"
\"${CMAKE_COMMAND}\" -E tar xzfv \"${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_numpy_1.8.tar.gz\")
"
)
endif()
# doesnt work, todo
# install(CODE "execute_process(COMMAND find ${TARGETDIR}/${BLENDER_VERSION}/python/lib/ -name '*.so' -exec strip -s {} '\;')")
endif()