From bddc1556e18494d6a1e35805bb8daf5fc8884db9 Mon Sep 17 00:00:00 2001 From: healther Date: Thu, 1 Feb 2018 01:11:25 +0100 Subject: [PATCH] symlink python3 to python (#7103) * symlink python3 to python * otherwise not all autotools are smart enough * Update package.py --- var/spack/repos/builtin/packages/python/package.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 @@ def post_install(self): 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 #