#------------------------------------------------------------------------------#
# test building the source tarball
cd $WORKSPACE
-python setup.py sdist
+python2 setup.py sdist
#------------------------------------------------------------------------------#
# test install using site packages
cd $WORKSPACE
rm -rf $WORKSPACE/env
-virtualenv --system-site-packages $WORKSPACE/env
+virtualenv --python=python2 --system-site-packages $WORKSPACE/env
. $WORKSPACE/env/bin/activate
pip install -e $WORKSPACE
-python setup.py install
+python2 setup.py install
# run tests in new pip+virtualenv install
. $WORKSPACE/env/bin/activate
cd $WORKSPACE
set +e
# use the virtualenv python so pylint checks against its installed libs
- PYTHONPATH=$WORKSPACE/.pylint-plugins python /usr/bin/pylint \
+ PYTHONPATH=$WORKSPACE/.pylint-plugins python2 /usr/bin/pylint \
--output-format=parseable --reports=n \
--load-plugins astng_hashlib \
fdroidserver/*.py fdroid makebuildserver setup.py > $WORKSPACE/pylint.parseable
aapt=`ls -1 $ANDROID_HOME/build-tools/*/aapt | sort | tail -1`
fi
+# allow the location of python to be overridden
+if [ -z $python ]; then
+ python=python2
+fi
+
#------------------------------------------------------------------------------#
echo_header "create a source tarball and use that to build a repo"
cd $WORKSPACE
-python setup.py sdist
+$python setup.py sdist
REPOROOT=`create_test_dir`
cd $REPOROOT