cmake: fix python pre release support

This commit is contained in:
Mizux Seiha
2025-12-02 11:34:39 +01:00
committed by Corentin Le Molgat
parent 78ea1566e6
commit 9845ee219b
4 changed files with 14 additions and 4 deletions

View File

@@ -425,6 +425,11 @@ file(TOUCH ${PYTHON_PROJECT_DIR}/sat/python/py.typed)
# setup.py.in contains cmake variable e.g. @PYTHON_PROJECT@ and
# generator expression e.g. $<TARGET_FILE_NAME:pyFoo>
if(RELEASE)
set(PYTHON_RELEASE "")
else()
set(PYTHON_RELEASE "rc1")
endif()
configure_file(
${PROJECT_SOURCE_DIR}/ortools/python/setup.py.in
${PROJECT_BINARY_DIR}/python/setup.py.in