Skip to content

Commit

Permalink
show errors and check exit code for wheel filename formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Oct 30, 2024
1 parent 5c8922a commit dd4f0ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/MakePythonWheel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ print(wheel_name(name='${python_module}', version='${version}', ext_modules=[Ext
"
OUTPUT_VARIABLE wheel_filename
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
RESULT_VARIABLE has_wheel_filename
)

if(NOT has_wheel_filename EQUAL "0")
message(FATAL_ERROR "Cannot format wheel filename via 'setuptools'.")
endif()

set(wheel_filename "${CMAKE_BINARY_DIR}/${wheel_filename}.whl")
set(wheel_distinfo "${CMAKE_BINARY_DIR}/${python_module}-${version}.dist-info")
set(wheel_data "${CMAKE_BINARY_DIR}/${python_module}-${version}.data")
Expand Down

0 comments on commit dd4f0ed

Please sign in to comment.