fixup! Install build package

See: https://packaging.python.org/en/latest/tutorials/packaging-projects/
This commit is contained in:
Xiaoge Su 2024-04-22 16:58:49 -07:00
parent d06c7a6b05
commit c852e53875
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ set(setup_file_name foundationdb-${FDB_VERSION}.tar.gz)
set(package_file ${CMAKE_BINARY_DIR}/packages/foundationdb-${FDB_VERSION}${not_fdb_release_string}.tar.gz)
add_custom_command(OUTPUT ${package_file}
COMMAND $<TARGET_FILE:Python3::Interpreter> -m ensurepip
COMMAND $<TARGET_FILE:Python3::Interpreter> -m pip install --upgrade build
COMMAND $<TARGET_FILE:Python3::Interpreter> -m build &&
${CMAKE_COMMAND} -E copy dist/${setup_file_name} ${package_file}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}