-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
37 lines (30 loc) · 963 Bytes
/
setup.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
#!/bin/bash
echo "STARTING SETUP"
printf %"$COLUMNS"s |tr " " "-"
printf %"$COLUMNS"s |tr " " "-"
# create environment
conda create --name 2deg_yodels_env
printf %"$COLUMNS"s |tr " " "-"
echo "Environment Created"
printf %"$COLUMNS"s |tr " " "-"
conda activate 2deg_yodels_env
printf %"$COLUMNS"s |tr " " "-"
echo "Environment Activated"
printf %"$COLUMNS"s |tr " " "-"
conda install -c anaconda python=3.10
printf %"$COLUMNS"s |tr " " "-"
echo "Python Installed"
printf %"$COLUMNS"s |tr " " "-"
# Install kwant (using pip need to manually install MUMPS)
conda install kwant -c conda-forge
printf %"$COLUMNS"s |tr " " "-"
echo "kwant installed"
printf %"$COLUMNS"s |tr " " "-"
# Install required packages using pip :: pip freeze > requirements.txt
pip install -r requirements.txt
printf %"$COLUMNS"s |tr " " "-"
echo "Packages Installed"
printf %"$COLUMNS"s |tr " " "-"
printf %"$COLUMNS"s |tr " " "-"
printf %"$COLUMNS"s |tr " " "-"
echo "FINISHED SETUP"