[Bf-blender-cvs] [6976be7] master: Python: install pyconfig.h on OSX, needed for PIP
Campbell Barton
noreply at git.blender.org
Thu Apr 28 12:43:39 CEST 2016
Commit: 6976be772330e77950d9a65f00fdc0fe74a75b76
Author: Campbell Barton
Date: Thu Apr 28 20:43:14 2016 +1000
Branches: master
https://developer.blender.org/rB6976be772330e77950d9a65f00fdc0fe74a75b76
Python: install pyconfig.h on OSX, needed for PIP
===================================================================
M source/creator/CMakeLists.txt
===================================================================
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 273e5b3..b7d8381 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -996,6 +996,15 @@ elseif(APPLE)
DESTINATION ${TARGETDIR_VER}/python
USE_SOURCE_PERMISSIONS
)
+
+ # Needed for distutils/pip
+ # get the last part of the include dir, will be 'python{version}{abiflag}',
+ get_filename_component(_py_inc_suffix ${PYTHON_INCLUDE_DIR} NAME)
+ install(
+ FILES ${PYTHON_INCLUDE_DIR}/pyconfig.h
+ DESTINATION ${TARGETDIR_VER}/python/include/${_py_inc_suffix}
+ )
+ unset(_py_inc_suffix)
endif()
# install blenderplayer bundle - copy of blender.app above. re-using macros et al
More information about the Bf-blender-cvs
mailing list