Create tar.gz file for python package

On Windows, the default package format can be zip, while tar.gz is expected.
This commit is contained in:
Jingyu Zhou 2019-03-11 11:08:50 -07:00
parent 4941d6dc3c
commit 314e87edfb

View File

@ -62,7 +62,7 @@ endif()
set(package_file_name foundationdb-${FDB_VERSION}.tar.gz)
set(package_file ${CMAKE_BINARY_DIR}/packages/${package_file_name})
add_custom_command(OUTPUT ${package_file}
COMMAND $<TARGET_FILE:Python::Interpreter> setup.py sdist &&
COMMAND $<TARGET_FILE:Python::Interpreter> setup.py sdist --formats=gztar &&
${CMAKE_COMMAND} -E copy dist/${package_file_name} ${package_file}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Create Python sdist package")