Fix numpy installation on windows+cmake
The was caused by numpy never unpackign because of no dpependnecy of any targets from the unpacked numpy. Tried making it so blender target dpeends on it, but for some reason it didn't work. For now added dedicated target for unpacked numpy. A bit dirty but much better than just totally failing.
This commit is contained in:
parent
8555595d17
commit
1807dcf619
|
@ -672,6 +672,7 @@ elseif(WIN32)
|
|||
COMMAND ${CMAKE_COMMAND} -E tar xzvf "${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_numpy_1.8.tar.gz"
|
||||
DEPENDS ${LIBDIR}/release/python${_PYTHON_VERSION_NO_DOTS}_numpy_1.8.tar.gz
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages)
|
||||
add_custom_target(python_numpy ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages/numpy)
|
||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${BLENDER_VERSION}/python/lib/site-packages/numpy
|
||||
DESTINATION ${BLENDER_VERSION}/python/lib/site-packages)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue