Skip to content

Commit 652e3a8

Browse files
authored
macOS version of PR oscarpilote#248
2 scripts with complete install of Ortho4XP 1.40 for macOS. Python 11 and Python 12 version.
1 parent 5c798bd commit 652e3a8

3 files changed

Lines changed: 87 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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... "
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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... "

z_Start_O4XP_Venv_Mac.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

0 commit comments

Comments
 (0)