Skip to content

Commit

Permalink
Use python3 for determining version number, move set -x above determi…
Browse files Browse the repository at this point in the history
…ning version for debugging
  • Loading branch information
holdenk committed Mar 22, 2017
1 parent bc4f673 commit a722140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/run-pip-tests
Expand Up @@ -64,16 +64,16 @@ if ! hash pip 2>/dev/null; then
exit 0
fi

set -x
# Determine which version of PySpark we are building for archive name
PYSPARK_VERSION=$(python -c "exec(open('python/pyspark/version.py').read());print __version__")
PYSPARK_VERSION=$(python3 -c "exec(open('python/pyspark/version.py').read());print __version__")
PYSPARK_DIST="$FWDIR/python/dist/pyspark-$PYSPARK_VERSION.tar.gz"
# The pip install options we use for all the pip commands
PIP_OPTIONS="--upgrade --no-cache-dir --force-reinstall "
# Test both regular user and edit/dev install modes.
PIP_COMMANDS=("pip install $PIP_OPTIONS $PYSPARK_DIST"
"pip install $PIP_OPTIONS -e python/")

set -x
for python in "${PYTHON_EXECS[@]}"; do
for install_command in "${PIP_COMMANDS[@]}"; do
echo "Testing pip installation with python $python"
Expand Down

0 comments on commit a722140

Please sign in to comment.