* ps - do not install all dependencies * Comment out blinkt because it depends on GPIO * Add pip upgrade check back * Disable import error blinkt * Update comment * Fix comment
26 lines
586 B
Bash
Executable file
26 lines
586 B
Bash
Executable file
#!/bin/sh
|
|
# Resolve all server dependencies that the application requires to run.
|
|
|
|
# Stop on errors
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Some requirements use parameter --only-binary only available
|
|
# in pip 7+. Upgrade if necessary.
|
|
if ! python3 -c 'import pkg_resources ; pkg_resources.require(["pip>=7.0.0"])' 2>/dev/null ; then
|
|
echo "Upgrading pip..."
|
|
python3 -m pip install -U pip
|
|
fi
|
|
|
|
echo "Installing test dependencies..."
|
|
python3 -m pip install -r requirements_test_all.txt
|
|
|
|
REQ_DEV_STATUS=$?
|
|
|
|
if [ $REQ_DEV_STATUS -eq 0 ]
|
|
then
|
|
exit $REQ_STATUS
|
|
else
|
|
exit $REQ_DEV_STATUS
|
|
fi
|