forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackend.sh
More file actions
executable file
·29 lines (23 loc) · 809 Bytes
/
Copy pathbackend.sh
File metadata and controls
executable file
·29 lines (23 loc) · 809 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
#!/bin/bash
# ==========================================================================
# Setup script for installing project dependencies.
# NOTE: Run this script while in the project root directory.
# It will not run correctly when run from another directory.
# ==========================================================================
# Set script to exit on any errors.
set -e
init() {
# Ensure that we're in a virtualenv.
python -c 'import sys; sys.prefix != sys.base_prefix' 2>/dev/null || (
echo 'Please activate your virtualenv before running this script.' &&
exit 1
)
}
# Install project dependencies.
install() {
echo 'Installing back-end dependencies...'
# Install requirements for Django Server or tox.
pip install -r ./requirements/local.txt
}
init "$1"
install