-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinstall.bash
48 lines (42 loc) · 912 Bytes
/
install.bash
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
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Installs the `fiftyone-brain` package and its dependencies.
#
# Usage:
# bash install.bash
#
# Copyright 2017-2025, Voxel51, Inc.
# voxel51.com
#
# Show usage information
set -e
usage() {
echo "Usage: bash $0 [-h] [-d]
Getting help:
-h Display this help message.
Custom installations:
-d Install developer dependencies.
"
}
# Parse flags
SHOW_HELP=false
DEV_INSTALL=false
while getopts "hd" FLAG; do
case "${FLAG}" in
h) SHOW_HELP=true ;;
d) DEV_INSTALL=true ;;
*) usage ;;
esac
done
[ ${SHOW_HELP} = true ] && usage && exit 0
OS=$(uname -s)
echo "***** INSTALLING FIFTYONE-BRAIN *****"
if [ ${DEV_INSTALL} = true ]; then
echo "Performing dev install"
pip install -r requirements/dev.txt
pre-commit install
pip install -e .
else
pip install -r requirements.txt
pip install .
fi
echo "***** INSTALLATION COMPLETE *****"