diff options
-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 # |