From 458bdf3f5f4e8e608669cf8c2d6638b08c5f91f3 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 23 Jul 2014 20:33:19 +0200 Subject: python3: optional decimal module support This commit makes the decimal module support optional: since Python 3.3 it relies on an external library. The source code of this library is available built-in as part of the Python sources, but in Buildroot we generally prefer to use the external library when possible. To achieve this, this commit adds a patch to Python that is similar to the one we use for expat support, but this time for the libmpdec/mpdecimal library. As a consequence, since mpdecimal now builds properly even when is not available (on i386), this commit fixes: http://autobuild.buildroot.org/results/b64/b64d5c941a7cac00619da3a0696939f86a8eafc2/ Signed-off-by: Thomas Petazzoni --- package/python3/python3.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'package/python3/python3.mk') diff --git a/package/python3/python3.mk b/package/python3/python3.mk index 1591ac9154..3aa22b273c 100644 --- a/package/python3/python3.mk +++ b/package/python3/python3.mk @@ -51,6 +51,13 @@ else PYTHON3_CONF_OPT += --disable-curses endif +ifeq ($(BR2_PACKAGE_PYTHON3_DECIMAL),y) +PYTHON3_DEPENDENCIES += mpdecimal +PYTHON3_CONF_OPT += --with-libmpdec=system +else +PYTHON3_CONF_OPT += --with-libmpdec=none +endif + ifeq ($(BR2_PACKAGE_PYTHON3_PYEXPAT),y) PYTHON3_DEPENDENCIES += expat PYTHON3_CONF_OPT += --with-expat=system -- cgit v1.2.3