From fed6345ffcf07cf558df692b51353b7edea86292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 27 Jun 2018 11:54:35 +0200 Subject: [PATCH] Remove cdecimal dependency It is no more needed as it is standard under Python3 --- INSTALL | 1 - proteus/__init__.py | 8 -------- setup.py | 1 - 3 files changed, 10 deletions(-) diff --git a/INSTALL b/INSTALL index 3694beb830..65beaa5e39 100644 --- a/INSTALL +++ b/INSTALL @@ -7,7 +7,6 @@ Prerequisites * Python 3.4 or later (http://www.python.org/) * python-dateutil (http://labix.org/python-dateutil) * Optional: trytond (http://www.tryton.org/) - * Optional: cdecimal (http://www.bytereef.org/mpdecimal/index.html) Installation ------------ diff --git a/proteus/__init__.py b/proteus/__init__.py index b725a6eaa3..6a72e058f7 100644 --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -4,14 +4,6 @@ A library to access Tryton's models like a client. ''' import sys -try: - import cdecimal - # Use cdecimal globally - if 'decimal' not in sys.modules: - sys.modules['decimal'] = cdecimal -except ImportError: - import decimal - sys.modules['cdecimal'] = decimal import threading import datetime import functools diff --git a/setup.py b/setup.py index 15dac75434..ed37241541 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,6 @@ setup(name=name, ], extras_require={ 'trytond': [get_require_version('trytond')], - 'cdecimal': ['cdecimal'], }, dependency_links=dependency_links, zip_safe=True,