From c14c0d8e7410fcc3754b6a3c8b988f8c71d2960a Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 19 Mar 2018 22:19:26 +0100 Subject: [PATCH] python: dbm module + version 3.6.4 (#7520) A build of python@3.X had the following in the logs: ``` The necessary bits to build these optional modules were not found: _dbm _gdbm _tkinter ``` As Tkinter is already a variant, we adopt the same strategy for dbm. --- var/spack/repos/builtin/packages/python/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index a3ad52df89..c045e50df4 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -46,6 +46,7 @@ class Python(AutotoolsPackage): list_url = "https://www.python.org/downloads/" list_depth = 1 + version('3.6.4', '9de6494314ea199e3633211696735f65') version('3.6.3', 'e9180c69ed9a878a4a8a3ab221e32fa9') version('3.6.2', 'e1a36bfffdd1d3a780b1825daf16e56c') version('3.6.1', '2d0fc9f3a5940707590e07f03ecb08b9') @@ -84,6 +85,8 @@ class Python(AutotoolsPackage): variant('pic', default=True, description='Produce position-independent code (for shared libs)') + variant('dbm', default=True, description='Provide support for dbm') + depends_on("openssl") depends_on("bzip2") depends_on("readline") @@ -92,6 +95,7 @@ class Python(AutotoolsPackage): depends_on("zlib") depends_on("tk", when="+tk") depends_on("tcl", when="+tk") + depends_on("gdbm", when='+dbm') # Patch does not work for Python 3.1 patch('ncurses.patch', when='@:2.8,3.2:')