generated from 3amigos-dev/3amigos-py
-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·38 lines (34 loc) · 908 Bytes
/
install.sh
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
31
32
33
34
35
36
37
38
#!/bin/bash
set -euxo pipefail
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${BASEDIR}"
apt update
apt install -y --no-install-recommends \
build-essential \
aspell aspell-en \
hunspell hunspell-en-au \
shellcheck \
git \
libxslt-dev \
libffi-dev \
libssl-dev musl-dev libpq-dev \
pkg-config \
curl
RUSTUP_HOME=/rust
export RUSTUP_HOME
CARGO_HOME=/cargo
export CARGO_HOME
PATH=/cargo/bin:/rust/bin:$PATH
export PATH
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly --no-modify-path
rustup default nightly
"python${PYVER}" -m pip install -U pip setuptools wheel
cd "${BASEDIR}/pip/${PYVER}"
for reqfile in */requirements.txt ; do
if [ "$(wc -l < "${reqfile}")" -gt 0 ] ; then
"python${PYVER}" -m pip install -r "${reqfile}"
fi
done
# Display installation
"python${PYVER}" -m pip freeze
"python${PYVER}" -m safety check