Skip to content
Snippets Groups Projects
Unverified Commit 4d794d63 authored by Todd Gamblin's avatar Todd Gamblin Committed by GitHub
Browse files

python: add `debug` variant to enable pydebug (#14584)

parent 796722ae
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,11 @@ class Python(AutotoolsPackage): ...@@ -70,6 +70,11 @@ class Python(AutotoolsPackage):
extendable = True 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 # --enable-shared is known to cause problems for some users on macOS
# See http://bugs.python.org/issue29846 # See http://bugs.python.org/issue29846
variant('shared', default=sys.platform != 'darwin', variant('shared', default=sys.platform != 'darwin',
...@@ -242,6 +247,11 @@ def configure_args(self): ...@@ -242,6 +247,11 @@ def configure_args(self):
spec.satisfies('@2.7.12:2.8,3.5.2:', strict=True): spec.satisfies('@2.7.12:2.8,3.5.2:', strict=True):
config_args.append('--with-icc') config_args.append('--with-icc')
if '+debug' in spec:
config_args.append('--with-pydebug')
else:
config_args.append('--without-pydebug')
if '+shared' in spec: if '+shared' in spec:
config_args.append('--enable-shared') config_args.append('--enable-shared')
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment