Skip to content

Commit

Permalink
fix sid build with sip 6.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Dec 22, 2024
1 parent 0b60e0f commit 19f8040
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/SIPMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ MACRO(GENERATE_SIP_PYTHON_MODULE_CODE MODULE_NAME MODULE_SIP SIP_FILES CPP_FILES
GET_FILENAME_COMPONENT(_sip_file_name_we ${_sip_file} NAME_WE)
FILE(RELATIVE_PATH _sip_file_relpath ${BINDING_FILES_ROOT_DIR} "${_sip_file_path}/${_sip_file_name_we}")
SET(_out_sip_file "${CMAKE_CURRENT_BINARY_DIR}/${_sip_file_relpath}.sip")

# Deprecated annotation supports message only since version 6.9.0 with abi-version 12.16 / 13.9 and above
if(${SIP_VERSION_STR} VERSION_LESS 6.9.0)
SET(sipabi "")
elif(BUILD_WITH_QT6)
SET(sipabi "\n[tool.sip.project]\nabi-version = \"13.9\"")
else(BUILD_WITH_QT6)
SET(sipabi "\n[tool.sip.project]\nabi-version = \"12.16\"")
endif()

CONFIGURE_FILE(${_sip_file} ${_out_sip_file})

# Deprecated annotation supports message only since version 6.9.0
Expand Down
1 change: 1 addition & 0 deletions python/3d/pyproject.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[build-system]
requires = ["sip >=5.0.0, <7", "PyQt-builder >=1.6, <2"]
build-backend = "sipbuild.api"
@sipabi@

# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
Expand Down
1 change: 1 addition & 0 deletions python/analysis/pyproject.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[build-system]
requires = ["sip >=5.0.0, <7", "PyQt-builder >=1.6, <2"]
build-backend = "sipbuild.api"
@sipabi@

# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
Expand Down
1 change: 1 addition & 0 deletions python/core/pyproject.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[build-system]
requires = ["sip >=5.0.0, <7", "PyQt-builder >=1.6, <2"]
build-backend = "sipbuild.api"
@sipabi@

# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
Expand Down
1 change: 1 addition & 0 deletions python/gui/pyproject.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[build-system]
requires = ["sip >=5.0.0, <7", "PyQt-builder >=1.6, <2"]
build-backend = "sipbuild.api"
@sipabi@

# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
Expand Down
1 change: 1 addition & 0 deletions python/server/pyproject.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[build-system]
requires = ["sip >=5.0.0, <7", "PyQt-builder >=1.6, <2"]
build-backend = "sipbuild.api"
@sipabi@

# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
Expand Down

0 comments on commit 19f8040

Please sign in to comment.