File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,13 @@ file(MAKE_DIRECTORY "${STUBGEN_OUTPUT_PATH}")
5151add_custom_command (
5252 TARGET pyqpp
5353 POST_BUILD
54- COMMAND ${Python3_EXECUTABLE} -m pybind11_stubgen pyqpps --output -dir
55- ${STUBGEN_OUTPUT_PATH} --ignore -all -errors
54+ COMMAND
55+ ${CMAKE_COMMAND} -E env
56+ PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}${PATH_SEP}${CMAKE_CURRENT_BINARY_DIR} /Release
57+ ${Python3_EXECUTABLE} -m pybind11_stubgen pyqpp --output -dir
58+ ${CMAKE_CURRENT_BINARY_DIR} /stubs --ignore -all -errors
5659 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
57- COMMENT "Generating Python stubs for pyqpp..."
5860 VERBATIM )
59-
6061# Create an empty "py.typed" file in the build directory
6162file (TOUCH "${CMAKE_CURRENT_BINARY_DIR} /py.typed" )
6263install (FILES "${CMAKE_CURRENT_BINARY_DIR} /py.typed" DESTINATION pyqpp)
You can’t perform that action at this time.
0 commit comments