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 30a3cc4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
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
9 changes: 9 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,15 @@ if(NOT WITH_QTWEBENGINE)
set(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_WEBENGINE_SIP)
endif()

# 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 "")
elseif(BUILD_WITH_QT6)
set(sipabi "\n[tool.sip.project]\nabi-version = \"13.9\"")
else()
set(sipabi "\n[tool.sip.project]\nabi-version = \"12.16\"")
endif()

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/core/project.py.in ${CMAKE_CURRENT_BINARY_DIR}/core/project.py @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/core/pyproject.toml.in ${CMAKE_CURRENT_BINARY_DIR}/core/pyproject.toml @ONLY)
GENERATE_SIP_PYTHON_MODULE_CODE(qgis._core core/core.sip "${sip_files_core}" cpp_files)
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 30a3cc4

Please sign in to comment.