blob: 46530c860eb9491f277a89beac61ae18f3aa4e3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
# Install dependencies needed to run client and server in a test environment.
#
# In details, this script does the following:
#
# - install dependencies for packages in /var/local from their requirements
# files in each of the repositories, using python wheels when possible.
#
# - install the python packages in development mode
#
# This script is meant to be copied to the docker container during container
# build and run after system dependencies have been installed.
BASEDIR="/var/local"
# install dependencies and packages
install_script="pkg/pip_install_requirements.sh"
opts="--use-leap-wheels"
pkgs="leap_pycommon soledad/common soledad/client soledad/server"
for pkg in ${pkgs}; do
pkgdir=${BASEDIR}/${pkg}
testing=""
if [ -f ${pkgdir}/pkg/requirements-testing.pip ]; then
testing="--testing"
fi
(cd ${pkgdir} && ${install_script} ${testing} ${opts})
(cd ${pkgdir} && python setup.py develop)
done
|