forked from autogluon/autogluon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfull_install.sh
executable file
·37 lines (30 loc) · 1.11 KB
/
full_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
#!/usr/bin/env bash
set -euo pipefail
EDITABLE="true"
while test $# -gt 0
do
case "$1" in
--non-editable) EDITABLE="false";;
*) echo "Error: Unused argument: $1" >&2
exit 1;;
esac
shift
done
# Check if uv is installed
if ! python -m pip show uv &> /dev/null; then
echo "uv could not be found. Installing uv..."
python -m pip install uv
fi
# Use uv to install packages
# TODO: We should simplify this by having a single setup.py at project root, and let user call `pip install -e .`
if [ "$EDITABLE" == "true" ]; then
# install common first to avoid bugs with parallelization
python -m uv pip install --refresh -e common/[tests]
# install the rest
python -m uv pip install -e core/[all,tests] -e features/ -e tabular/[all,tests] -e multimodal/[tests] -e timeseries/[all,tests] -e eda/ -e autogluon/
else
# install common first to avoid bugs with parallelization
python -m uv pip install --refresh common/[tests]
# install the rest
python -m uv pip install core/[all,tests] features/ tabular/[all,tests] multimodal/[tests] timeseries/[all,tests] eda/ autogluon/
fi