Skip to content

Commit

Permalink
use python -m pip in test_wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
sc1f committed Jan 12, 2021
1 parent 4074a33 commit 3991f04
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/perspective/scripts/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,17 @@ IFS=${SAVEIFS}

for wheel in ${WHEELS_LIST}; do
echo "Installing ${wheel}..."
pip install --force-reinstall ${wheel}
${PYTHON_INTERPRETER} -m pip install --force-reinstall ${wheel}

echo "-----------------------"
echo "Testing ${wheel}"

IS_LIBPSP=$(${PYTHON_INTERPRETER} -c "import perspective;print(perspective.is_libpsp())")
${PYTHON_INTERPRETER} -c "import perspective;print(perspective.is_libpsp())"

echo "-----------------------"

if [ "${IS_LIBPSP}" != "True" ]; then
echo "${wheel} failed to import with error: ${IS_LIBPSP}"
echo "${wheel} failed to import!"
echo "${VENV_DIR} has been preserved for debugging"
exit 1
else
Expand Down

0 comments on commit 3991f04

Please sign in to comment.