Skip to content

Commit 50bfda7

Browse files
committed
added jython_install.sh
1 parent 0bb31ea commit 50bfda7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

jython_install.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
# vim:ts=4:sts=4:sw=4:et
3+
#
4+
# Author: Hari Sekhon
5+
# Date: 2016-08-01 10:17:55 +0100 (Mon, 01 Aug 2016)
6+
#
7+
# https://github.com/harisekhon/pytools
8+
#
9+
# License: see accompanying Hari Sekhon LICENSE file
10+
#
11+
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12+
#
13+
# https://www.linkedin.com/in/harisekhon
14+
#
15+
16+
set -euo pipefail
17+
[ -n "${DEBUG:-}" ] && set -x
18+
srcdir="$( cd "$( dirname "$0}" )" && pwd )"
19+
20+
JYTHON_VERSION=2.7.0
21+
22+
mkdir -p /opt
23+
wget -cO jython-installer.jar "http://search.maven.org/remotecontent?filepath=org/python/jython-installer/$JYTHON_VERSION/jython-installer-$JYTHON_VERSION.jar"
24+
"$srcdir/jython_autoinstall.exp"
25+
ln -sf "/opt/jython-$JYTHON_VERSION" /opt/jython
26+
rm -f jython-installer.jar
27+
echo "Jython Install DONE - Add /opt/jython/bin to your \$PATH"

0 commit comments

Comments
 (0)