File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ brew install gdal python@3.11 python-tk@3.11 proj spatialindex p7zip
4+
5+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
6+
7+ cd $SCRIPT_DIR
8+
9+ # 1. Create a Python virtual environment
10+
11+ python3.11 -m venv $SCRIPT_DIR /venv-ortho
12+
13+ # 2. Activate Python venv
14+
15+ source $SCRIPT_DIR /venv-ortho/bin/activate
16+
17+ # 3. Install packages with pip
18+
19+ pip install -r requirements.txt
20+ pip install gdal
21+ pip install scikit-fmm
22+
23+ # 6. DONE
24+
25+ echo " "
26+ echo " Preparation complete!"
27+ echo " "
28+ echo " Use $SCRIPT_DIR /z_Start_O4XP_Venv_Mac.sh to start O4XP"
29+ echo " "
30+ echo " "
31+
32+ # Function: Pause
33+ function pause(){
34+ read -p " $* "
35+ }
36+
37+ pause " Press enter to continue... "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ brew install gdal python python-tk proj spatialindex p7zip
4+
5+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
6+
7+ cd $SCRIPT_DIR
8+
9+ # 1. Create a Python virtual environment
10+
11+ python3 -m venv $SCRIPT_DIR /venv-ortho
12+
13+ # 2. Activate Python venv
14+
15+ source $SCRIPT_DIR /venv-ortho/bin/activate
16+
17+ # 3. Install packages with pip
18+
19+ pip install -r requirements.txt
20+ pip install gdal
21+
22+ # 4. Download scikit-fmm's "meson" branch, compile and install it
23+
24+ git clone -b meson https://github.com/scikit-fmm/scikit-fmm.git $SCRIPT_DIR /venv-ortho/scikit-fmm
25+
26+ python -m build $SCRIPT_DIR /venv-ortho/scikit-fmm
27+
28+ pip install $SCRIPT_DIR /venv-ortho/scikit-fmm
29+
30+ # 6. DONE
31+
32+ echo " "
33+ echo " Preparation complete!"
34+ echo " "
35+ echo " Use $SCRIPT_DIR /z_Start_O4XP_Venv_Mac.sh to start O4XP"
36+ echo " "
37+ echo " "
38+
39+ # Function: Pause
40+ function pause(){
41+ read -p " $* "
42+ }
43+
44+ pause " Press enter to continue... "
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd)
3+
4+ cd $SCRIPT_DIR
5+
6+ $SCRIPT_DIR /venv-ortho/bin/python Ortho4XP.py
You can’t perform that action at this time.
0 commit comments