Skip to content

Commit

Permalink
Update install-client-archives.sh (#566)
Browse files Browse the repository at this point in the history
* Update install-client-archives.sh

Update to add a check for each requirements file before installing it.

* Update install-client-archives.sh

Tidy up the script

* Update install-client-archives.sh

Omit if block for requirements.txt

* Update install-client-archives.sh

Swap order that requirements are installed.
  • Loading branch information
sharifsalah authored Dec 11, 2019
1 parent 48f29a8 commit ecf04c8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sandbox/install-client-archives.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ for PACKAGE in "${CLIENT_PACKAGES[@]}"; do
wget ${BASE_URL}${VERSION}/${PACKAGE}-${VERSION}-all.tar.gz \
|| wget ${BASE_URL}v${VERSION}/${PACKAGE}-${VERSION}-all.tar.gz
tar xvzf ${PACKAGE}-${VERSION}-all.tar.gz
pip install -r ${PACKAGE}-${VERSION}-all/requirements.txt
pip install -r ${PACKAGE}-${VERSION}-all/requirements_gui.txt
REQUIREMENTS=${PACKAGE}-${VERSION}-all/requirements.txt
REQUIREMENTS_GUI=${PACKAGE}-${VERSION}-all/requirements_gui.txt

pip install -r ${REQUIREMENTS}
# requirements vary across the Python packages
if [ -f ${REQUIREMENTS_GUI} ]; then
pip install -r ${REQUIREMENTS_GUI}
fi
cd ${PACKAGE}-${VERSION}-all
python setup.py install
cd ..
Expand Down

0 comments on commit ecf04c8

Please sign in to comment.