diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-04-28 13:43:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-04-28 13:46:58 +0300 |
commit | 6976be772330e77950d9a65f00fdc0fe74a75b76 (patch) | |
tree | b22bb9bd99d98d02c9e042203422d99591c78021 | |
parent | 94a6019a7ba94f8b46b737c185293ecce19cc6a6 (diff) |
Python: install pyconfig.h on OSX, needed for PIP
-rw-r--r-- | source/creator/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index 273e5b33d0d..b7d8381639d 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 |