-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhypatia_plus_install_dependencies.sh
46 lines (39 loc) · 1.85 KB
/
hypatia_plus_install_dependencies.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
38
39
40
41
42
43
44
45
46
# Adapted from hypatia, but for installing in a conda virtual environment, and with version corrections:
# Main information
echo "Hypatia-plus: installing dependencies"
echo ""
echo "It is highly recommend you use a recent Linux operating system (e.g., Ubuntu 20 or higher)."
echo "Python version 3.7+ is required."
echo ""
# General
# sudo apt-get update || exit 1
# satgenpy
echo "Installing dependencies for satgenpy..."
python -m pip install numpy astropy ephem networkx sgp4 geopy matplotlib statsmodels || exit 1
sudo apt-get install libproj-dev proj-data proj-bin libgeos-dev || exit 1
# Mac alternatives (to be able to pip install cartopy)
# brew install proj geos
# export CFLAGS=-stdlib=libc++
# MACOSX_DEPLOYMENT_TARGET=10.14
python -m pip install git+https://github.com/snkas/[email protected] || exit 1
python -m pip install cython #https://stackoverflow.com/questions/53697814/using-pip-install-to-install-cartopy-but-missing-proj-version-at-least-4-9-0
python -m pip install cartopy || exit 1
python -m pip install shapely || exit 1
python -m pip install pyshp || exit 1
# ns3-sat-sim
echo "Installing dependencies for ns3-sat-sim..."
sudo apt-get -y install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev lcov gnuplot || exit 1
python -m pip install numpy statsmodels || exit 1
python -m pip install git+https://github.com/snkas/[email protected] || exit 1
# git submodule update --init --recursive || exit 1
# satviz
echo "There are currently no dependencies for satviz."
# paper
echo "Installing dependencies for paper..."
python -m pip install numpy || exit 1
python -m pip install git+https://github.com/snkas/[email protected] || exit 1
python -m pip install git+https://github.com/snkas/[email protected] || exit 1
sudo apt-get install gnuplot
# Confirmation dependencies are installed
echo ""
echo "Hypatia-plus dependencies have been installed."