-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathsetup.sh
More file actions
30 lines (21 loc) · 892 Bytes
/
setup.sh
File metadata and controls
30 lines (21 loc) · 892 Bytes
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
# hotfix for Python 11: https://stackoverflow.com/a/76469774
export PIP_BREAK_SYSTEM_PACKAGES=1
export PIP_ROOT_USER_ACTION=ignore
if [ -z "$(ls -A /code)" ]; then
echo "Cloning g3w-admin branch ${G3W_SUITE_BRANCH:-dev} ..."
git clone https://github.com/g3w-suite/g3w-admin.git --single-branch --depth 1 --branch ${G3W_SUITE_BRANCH:-dev} /code && \
cd /code
fi
cp /requirements_rl.txt .
# Override settings
pip3 install -r requirements_rl.txt
pip3 install -r requirements_huey.txt
# Front end
#TODO make this as generic so that we can install as many plugins as possible
git submodule add -f https://github.com/g3w-suite/g3w-admin-frontend.git g3w-admin/frontend
# Caching
pip3 install -r /code/g3w-admin/caching/requirements.txt
# File manager
pip3 install -r /code/g3w-admin/filemanager/requirements.txt
# Qplotly
pip3 install -r /code/g3w-admin/qplotly/requirements.txt