diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-01-21 15:09:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 15:09:41 -0800 |
commit | 4d794d63b5ac3c667446c74d367fe4eb7f1e2caf (patch) | |
tree | d189eed6569b7cb7a19ba383ba006fa021915e38 /var/spack/repos/builtin/packages/python/package.py | |
parent | 796722aeeec4b95635dfd30659ab3fa0f8d57337 (diff) | |
download | spack-4d794d63b5ac3c667446c74d367fe4eb7f1e2caf.tar.gz spack-4d794d63b5ac3c667446c74d367fe4eb7f1e2caf.tar.bz2 spack-4d794d63b5ac3c667446c74d367fe4eb7f1e2caf.tar.xz spack-4d794d63b5ac3c667446c74d367fe4eb7f1e2caf.zip |
python: add `debug` variant to enable pydebug (#14584)
Diffstat (limited to 'var/spack/repos/builtin/packages/python/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/python/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index 151b56bb8d..bdc4a64019 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -70,6 +70,11 @@ class Python(AutotoolsPackage): extendable = True + variant( + 'debug', default=False, + description="debug build with extra checks (this is high overhead)" + ) + # --enable-shared is known to cause problems for some users on macOS # See http://bugs.python.org/issue29846 variant('shared', default=sys.platform != 'darwin', @@ -242,6 +247,11 @@ class Python(AutotoolsPackage): spec.satisfies('@2.7.12:2.8,3.5.2:', strict=True): config_args.append('--with-icc') + if '+debug' in spec: + config_args.append('--with-pydebug') + else: + config_args.append('--without-pydebug') + if '+shared' in spec: config_args.append('--enable-shared') else: |