Skip to content

Commit

Permalink
limit psycopg2 check to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Apr 15, 2024
1 parent ff620ed commit 20a635c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions release_creation/bundle/test_archive_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ python -m pip install -r "${requirements_file}" \
--find-links ./bundle_pkg_test \
--pre
dbt --version
# make sure psycopg2 is installed, but not psycopg2-binary
echo -n "Checking psycopg2 install..."
if ! pip freeze | grep psycopg2; then
# make sure psycopg2 is installed for linux, but not psycopg2-binary
echo -n "Checking psycopg2 install for linux..."
if [[ "$OSTYPE" == linux* && ! pip freeze | grep psycopg2 ]]; then
echo "psycopg2 is not installed!"
exit 1
fi
echo ok

echo -n "Checking psycopg2-binary..."
if pip freeze | grep psycopg2-binary; then
echo -n "Checking psycopg2-binary for linux..."
if [[ "$OSTYPE" == linux* && pip freeze | grep psycopg2-binary ]]; then
echo "psycopg2-binary is installed and should not be!"
exit 1
fi
Expand Down

0 comments on commit 20a635c

Please sign in to comment.