summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Fischer <eafischer2@alaska.edu>2020-05-04 13:30:59 -0800
committerGitHub <noreply@github.com>2020-05-04 16:30:59 -0500
commitdea5d913db9f98870eb4bd91ba1f8276e5e47d17 (patch)
treedbd492291b679d55f4a4d8b4a09f8d85bbf65306
parent7b31f5474b8e5ee3c72938eeb6110e8556c4894d (diff)
downloadspack-dea5d913db9f98870eb4bd91ba1f8276e5e47d17.tar.gz
spack-dea5d913db9f98870eb4bd91ba1f8276e5e47d17.tar.bz2
spack-dea5d913db9f98870eb4bd91ba1f8276e5e47d17.tar.xz
spack-dea5d913db9f98870eb4bd91ba1f8276e5e47d17.zip
Updates to Python for macOS (#16449)
Co-authored-by: Elizabeth Fischer <elizabeth.fischer@alaska.edu>
-rw-r--r--var/spack/repos/builtin/packages/python/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 712216f491..a9b04a2d5b 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -84,8 +84,9 @@ class Python(AutotoolsPackage):
)
# --enable-shared is known to cause problems for some users on macOS
+ # This is a problem for Python 2.7 only, not Python3
# See http://bugs.python.org/issue29846
- variant('shared', default=sys.platform != 'darwin',
+ variant('shared', default=True,
description='Enable shared libraries')
# From https://docs.python.org/2/c-api/unicode.html: Python's default
# builds use a 16-bit type for Py_UNICODE and store Unicode values