Handle the case where there are no conditional (heh) requirements

This commit is contained in:
Nate Coraor
2015-10-01 15:38:58 -04:00
parent 2955ac414a
commit 665c4c299d
+2 -1
View File
@@ -96,5 +96,6 @@ fi
if [ $FETCH_WHEELS -eq 1 ]; then
pip install -e git+https://github.com/natefoo/pip@linux-wheels#egg=pip &&
pip install -r requirements.txt --index-url https://wheels.galaxyproject.org/simple/ &&
PYTHONPATH=lib python -c "import galaxy.dependencies; print '\n'.join(galaxy.dependencies.optional('$GALAXY_CONFIG_FILE'))" | pip install -r /dev/stdin --index-url https://wheels.galaxyproject.org/simple/ || exit 1
GALAXY_CONDITIONAL_DEPENDENCIES=`PYTHONPATH=lib python -c "import galaxy.dependencies; print '\n'.join(galaxy.dependencies.optional('$GALAXY_CONFIG_FILE'))"` &&
[ -z "$GALAXY_CONDITIONAL_DEPENDENCIES" ] || echo "$GALAXY_CONDITIONAL_DEPENDENCIES" | pip install -r /dev/stdin --index-url https://wheels.galaxyproject.org/simple/
fi