summaryrefslogtreecommitdiff
path: root/odoo/__init__.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-10-09 09:14:23 +0000
committerfw-bot <otis@odoo.com>2019-10-15 16:07:07 +0000
commite7c70e3635ace18150d8d9e7988dacbdd9486201 (patch)
tree9c1203a23fa2c9041cf8f20d8014f9330bda4985 /odoo/__init__.py
parent024a0afd9f7c91256f751c4a06d192ad110a082a (diff)
[FIX] packaging,doc: minimum python version is 3.6
In 12.0 it was 3.5 but for 13.0, it is acceptable 3.6. Debian Buster has 3.7 and Ubuntu 18.04 LTS has 3.6 This will avoid undeterminist errors with OrderedDict CentOS 7 still does not ship python3 by default but it is possible to install it and CentOS 8 with python 3.6 was released in septembre 2019 closes odoo/odoo#38827 X-original-commit: 14e3e7524c2edd08ddf19afe512cb4462d070c0b Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'odoo/__init__.py')
-rw-r--r--odoo/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/odoo/__init__.py b/odoo/__init__.py
index 49c78193233..30da3608237 100644
--- a/odoo/__init__.py
+++ b/odoo/__init__.py
@@ -10,9 +10,8 @@
#----------------------------------------------------------
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
-# As of version 12.0, python 2 is no longer supported, ensure py version is >= 3.5
import sys
-assert sys.version_info > (3, 5), "Python 2 detected, Odoo requires Python >= 3.5 to run."
+assert sys.version_info > (3, 6), "Outdated python version detected, Odoo requires Python >= 3.6 to run."
#----------------------------------------------------------
# Running mode flags (gevent, prefork)