-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·27 lines (19 loc) · 676 Bytes
/
Copy pathinstall
File metadata and controls
executable file
·27 lines (19 loc) · 676 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
#!/usr/bin/env bash
if [ ! -z "$PYTHON_ENV" ]; then
echo "Python virtual environment detected, activating: $PYTHON_ENV"
source "${VIRTUALENVWRAPPER}"
workon "$PYTHON_ENV"
fi
function lowercase() {
#echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
echo "$1" | awk '{print tolower($0)}'
}
OS=$(lowercase "$(uname -a | grep Microsoft -q && echo windowsnt || uname)")
echo "OS=${OS}"
if [[ "$OS" == "windowsnt" || "$OS" == *"mingw"* || "$OS" == *"cygwin"* ]]; then
make pydeps
else
mvn clean install -Pdependencies
fi
CHECK_PYAEM=$(python -c 'import pyaem; print(pyaem.__version__)')
echo "CHECK_PYAEM=${CHECK_PYAEM}"