Bump required Python version to 3.5
This commit is contained in:
parent
4492999f21
commit
adc50f7a08
@ -10,7 +10,7 @@ Requirements
|
|||||||
============
|
============
|
||||||
The following packages **MUST** be installed in order for Gramps to work:
|
The following packages **MUST** be installed in order for Gramps to work:
|
||||||
|
|
||||||
* **Python** 3.3 or greater - The programming language used by Gramps. https://www.python.org/
|
* **Python** 3.5 or greater - The programming language used by Gramps. https://www.python.org/
|
||||||
* **GTK** 3.12 or greater - A cross-platform widget toolkit for creating graphical user interfaces. http://www.gtk.org/
|
* **GTK** 3.12 or greater - A cross-platform widget toolkit for creating graphical user interfaces. http://www.gtk.org/
|
||||||
* **pygobject** 3.12 or greater - Python Bindings for GLib/GObject/GIO/GTK+ https://wiki.gnome.org/Projects/PyGObject
|
* **pygobject** 3.12 or greater - Python Bindings for GLib/GObject/GIO/GTK+ https://wiki.gnome.org/Projects/PyGObject
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ from .gen.mime import mime_type_is_defined
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
MIN_PYTHON_VERSION = (3, 3, 0, '', 0)
|
MIN_PYTHON_VERSION = (3, 5, 0, '', 0)
|
||||||
if not sys.version_info >= MIN_PYTHON_VERSION:
|
if not sys.version_info >= MIN_PYTHON_VERSION:
|
||||||
logging.warning(_("Your Python version does not meet the "
|
logging.warning(_("Your Python version does not meet the "
|
||||||
"requirements. At least python %(v1)d.%(v2)d.%(v3)d is needed to"
|
"requirements. At least python %(v1)d.%(v2)d.%(v3)d is needed to"
|
||||||
|
4
setup.py
4
setup.py
@ -29,8 +29,8 @@ Gramps distutils module.
|
|||||||
#check python version first
|
#check python version first
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.version_info < (3, 2):
|
if sys.version_info < (3, 5):
|
||||||
raise SystemExit("Gramps requires Python 3.2 or later.")
|
raise SystemExit("Gramps requires Python 3.5 or later.")
|
||||||
|
|
||||||
from distutils import log
|
from distutils import log
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
Loading…
Reference in New Issue
Block a user