summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhealther <healther@users.noreply.github.com>2018-02-01 01:11:25 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2018-01-31 16:11:25 -0800
commitbddc1556e18494d6a1e35805bb8daf5fc8884db9 (patch)
tree3ebeeb3a07ef00d0079a457d8cecaa4bef22a974
parentec7d069ba531ed46f211de4ea447be1fd49300b2 (diff)
downloadspack-bddc1556e18494d6a1e35805bb8daf5fc8884db9.tar.gz
spack-bddc1556e18494d6a1e35805bb8daf5fc8884db9.tar.bz2
spack-bddc1556e18494d6a1e35805bb8daf5fc8884db9.tar.xz
spack-bddc1556e18494d6a1e35805bb8daf5fc8884db9.zip
symlink python3 to python (#7103)
* symlink python3 to python * otherwise not all autotools are smart enough * Update package.py
-rw-r--r--var/spack/repos/builtin/packages/python/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 8df3eb86fa..34b6fb2bad 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -203,6 +203,12 @@ class Python(AutotoolsPackage):
os.symlink(os.path.join(src, f),
os.path.join(dst, f))
+ if spec.satisfies('@3:'):
+ os.symlink(os.path.join(prefix.bin, 'python3'),
+ os.path.join(prefix.bin, 'python'))
+ os.symlink(os.path.join(prefix.bin, 'python3-config'),
+ os.path.join(prefix.bin, 'python-config'))
+
# TODO: Once better testing support is integrated, add the following tests
# https://wiki.python.org/moin/TkInter
#