CMake: invoke python build_ext in build step #298

pull/300/head
nick black 4 years ago
parent a2f061a91d
commit fad46d8656
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

1
.gitignore vendored

@ -7,3 +7,4 @@ python/src/_notcurses.so
rust/*/target
*.pyc
*.so
debian/python3-notcurses

@ -444,6 +444,7 @@ add_custom_command(
"${CMAKE_CURRENT_BINARY_DIR}/build/pytimestamp"
COMMAND
"${Python3_EXECUTABLE}" ${SETUP_PY} build &&
"${Python3_EXECUTABLE}" ${SETUP_PY} build_ext &&
mkdir -p "${CMAKE_CURRENT_BINARY_DIR}/build" &&
${CMAKE_COMMAND} -E touch "${CMAKE_CURRENT_BINARY_DIR}/build/pytimestamp"
DEPENDS

Loading…
Cancel
Save