Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bump minimum python version to 3.5
To get proper support for type hints
  • Loading branch information
m-kuhn authored and nyalldawson committed Jan 19, 2021
1 parent 10789b1 commit 526ef59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -916,6 +916,10 @@ endif()
# Python build dependency

find_package(PythonLibrary REQUIRED)
set(MIN_PYTHON_VERSION "3.5")
if(${PYTHON_SHORT_VERSION} VERSION_LESS ${MIN_PYTHON_VERSION})
message(FATAL_ERROR "Python version ${PYTHON_SHORT_VERSION} is too old. Minimum Python version is ${MIN_PYTHON_VERSION}.")
endif()

set(MIN_PYTHON_VERSION "3.6")
if(${PYTHON_SHORT_VERSION} VERSION_LESS ${MIN_PYTHON_VERSION})
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Expand Up @@ -118,7 +118,7 @@ Optional dependencies:
* for georeferencer - GSL >= 1.8
* for PostGIS support - PostgreSQL >= 8.0.x
* for gps plugin - gpsbabel
* for mapserver export and PyQGIS - Python >= 3.3
* for mapserver export and PyQGIS - Python >= 3.5
* for python support - SIP >= 4.12, PyQt >= 5.3 must match Qt version, Qscintilla2
* for qgis mapserver - FastCGI
* for oracle provider - Oracle OCI library
Expand Down

0 comments on commit 526ef59

Please sign in to comment.