diff options
author | healther <healther@users.noreply.github.com> | 2018-02-01 01:11:25 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-01-31 16:11:25 -0800 |
commit | bddc1556e18494d6a1e35805bb8daf5fc8884db9 (patch) | |
tree | 3ebeeb3a07ef00d0079a457d8cecaa4bef22a974 | |
parent | ec7d069ba531ed46f211de4ea447be1fd49300b2 (diff) | |
download | spack-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.py | 6 |
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 # |