summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Doffman <mark.doffman@codethink.co.uk>2014-03-11 20:03:42 +0000
committerMark Doffman <mark.doffman@codethink.co.uk>2014-03-25 12:40:48 +0000
commitfa86445bfd4fb8e5441d685d92bf8a8ee237f022 (patch)
tree52f7b03f527d0d930a44d20b10bf9be143b4fcde
parentd2d18e5793c440d1e5725a971d7e8a757616d1ae (diff)
downloadcpython-fa86445bfd4fb8e5441d685d92bf8a8ee237f022.tar.gz
Add python2 symlink after install.baserock/morph-2.7
python2 symlink is needed by some scripts that use the #!/usr/bin/python2 shebang. A python2 symlink is also reccomended in PEP394. This patch adds a python2 symlink to python2.7 after installation.
-rw-r--r--cpython.morph2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpython.morph b/cpython.morph
index 30f38cb950..551c4165b0 100644
--- a/cpython.morph
+++ b/cpython.morph
@@ -3,3 +3,5 @@ kind: chunk
build-system: autotools
configure-commands:
- ./configure --prefix="$PREFIX" --enable-shared
+post-install-commands:
+- ln -s python2.7 "$DESTDIR"/"$PREFIX"/bin/python2