Skip to content

Commit 526ef59

Browse files
m-kuhnnyalldawson
authored andcommittedJan 19, 2021
Bump minimum python version to 3.5
To get proper support for type hints
1 parent 10789b1 commit 526ef59

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,10 @@ endif()
916916
# Python build dependency
917917

918918
find_package(PythonLibrary REQUIRED)
919+
set(MIN_PYTHON_VERSION "3.5")
920+
if(${PYTHON_SHORT_VERSION} VERSION_LESS ${MIN_PYTHON_VERSION})
921+
message(FATAL_ERROR "Python version ${PYTHON_SHORT_VERSION} is too old. Minimum Python version is ${MIN_PYTHON_VERSION}.")
922+
endif()
919923

920924
set(MIN_PYTHON_VERSION "3.6")
921925
if(${PYTHON_SHORT_VERSION} VERSION_LESS ${MIN_PYTHON_VERSION})

‎INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Optional dependencies:
118118
* for georeferencer - GSL >= 1.8
119119
* for PostGIS support - PostgreSQL >= 8.0.x
120120
* for gps plugin - gpsbabel
121-
* for mapserver export and PyQGIS - Python >= 3.3
121+
* for mapserver export and PyQGIS - Python >= 3.5
122122
* for python support - SIP >= 4.12, PyQt >= 5.3 must match Qt version, Qscintilla2
123123
* for qgis mapserver - FastCGI
124124
* for oracle provider - Oracle OCI library

0 commit comments

Comments
 (0)
Please sign in to comment.