Skip to content

Commit

Permalink
updated to remove the python dependency, uses grep instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennon York committed Dec 22, 2014
1 parent 7e785a6 commit 28d0a99
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build/mvn
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,9 @@ install_zinc() {
# and, with that, download the specific version of Scala necessary under
# the build/ folder
install_scala() {
[ -z "`which python 2>/dev/null`" ] && \
echo "ERROR: Found no `python` package; please install one and try again." && \
exit 1
# determine the Scala version used in Spark
local scala_version=`python -c "
from xml.dom import minidom
print(minidom.parse('${_DIR}/../pom.xml').getElementsByTagName('scala.version')[0].firstChild.data)"`
local scala_version=`grep "scala.version" "${_DIR}/../pom.xml" | \
head -1 | cut -f2 -d'>' | cut -f1 -d'<'`
local scala_bin="${_DIR}/scala-${scala_version}/bin/scala"

install_app \
Expand Down

0 comments on commit 28d0a99

Please sign in to comment.