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 0d070a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/perspective/scripts/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ source ./bin/activate
echo "${PYTHON_INTERPRETER} virtualenv activated"
cd ..

echo "Upgrading pip for ${PYTHON_INTERPRETER}..."
${PYTHON_INTERPRETER} -m pip install --upgrade pip

echo "Looking for wheels..."
cd ${HERE}/../wheelhouse

# Look for wheels based on Python version/platform
Expand All @@ -89,13 +93,15 @@ 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())")

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

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

0 comments on commit 0d070a1

Please sign in to comment.