diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index 3bd412b11e..546286bb12 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -289,6 +289,10 @@ def configure_args(self): spec['tcl'].libs.ld_flags, spec['tk'].libs.ld_flags) ]) + # https://docs.python.org/3.8/library/sqlite3.html#f1 + if spec.satisfies('@3.2: +sqlite3'): + config_args.append('--enable-loadable-sqlite-extensions') + return config_args @run_after('install')