-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·42 lines (32 loc) · 876 Bytes
/
build.sh
File metadata and controls
executable file
·42 lines (32 loc) · 876 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
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -e
# assumes python 3.6, pip, virtualenv
iterm=$1
if ! command -v pipx &> /dev/null
then
echo "pipx could not be found"
pip install pipx;
else
pipx_path=$(which pipx);
echo "using pipx located at $pipx_path"
fi
pipx ensurepath
pipx uninstall .
if [ "$iterm" = "iterm" ];
then
echo "building with iterm inline plotting"
pipx install .[iterm]
else
pipx install .
fi
printf "\n\n\n\n"
echo "========================================================================"
echo "consider adding these to your profile!"
echo "========================================================================"
printf "\n\n"
if [ "$iterm" = "iterm" ]; then
echo 'export MPLBACKEND="module://itermplot"'
fi
echo "alias histogram=\"bash `pwd`/scripts/histogram.sh\""
echo "alias shuffle_lines=\"perl `pwd`/scripts/shuffleLines.pl\""
printf "\n\n"