Skip to content

Commit

Permalink
Make psycopg2 grep a little more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Mar 23, 2018
1 parent e84dd5d commit 30c2ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/common_startup.sh
Expand Up @@ -187,7 +187,7 @@ if [ $FETCH_WHEELS -eq 1 ]; then
pip install $requirement_args --index-url "${GALAXY_WHEELS_INDEX_URL}" --extra-index-url "${PYPI_INDEX_URL}"
GALAXY_CONDITIONAL_DEPENDENCIES=$(PYTHONPATH=lib python -c "from __future__ import print_function; import galaxy.dependencies; print('\n'.join(galaxy.dependencies.optional('$GALAXY_CONFIG_FILE')))")
if [ -n "$GALAXY_CONDITIONAL_DEPENDENCIES" ]; then
if pip list | grep "psycopg2 (2.7.3)"; then
if pip list | grep "psycopg2[\(\ ]*2.7.3"; then
echo "An older version of psycopg2 (non-binary, version 2.7.3) has been detected. Galaxy now uses psycopg2-binary, which will be installed after removing psycopg2."
pip uninstall -y psycopg2==2.7.3
fi
Expand Down

0 comments on commit 30c2ea0

Please sign in to comment.