summaryrefslogtreecommitdiff
path: root/package/python3/Config.in
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-23 20:33:19 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-27 14:35:08 +0200
commit458bdf3f5f4e8e608669cf8c2d6638b08c5f91f3 (patch)
treee3a54cb32982c8b16bcdebd01dd8601d988d8eb0 /package/python3/Config.in
parent6bebd7f2715abad87f5d9f30738567458b4b9692 (diff)
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 <fenv.h> is not available (on i386), this commit fixes: http://autobuild.buildroot.org/results/b64/b64d5c941a7cac00619da3a0696939f86a8eafc2/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/python3/Config.in')
-rw-r--r--package/python3/Config.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/python3/Config.in b/package/python3/Config.in
index 12928f6b06..3e193c8da7 100644
--- a/package/python3/Config.in
+++ b/package/python3/Config.in
@@ -54,6 +54,12 @@ config BR2_PACKAGE_PYTHON3_CURSES
help
curses module for Python3.
+config BR2_PACKAGE_PYTHON3_DECIMAL
+ select BR2_PACKAGE_MPDECIMAL
+ bool "decimal module"
+ help
+ decimal module for Python3.
+
config BR2_PACKAGE_PYTHON3_PYEXPAT
select BR2_PACKAGE_EXPAT
bool "pyexpat"