Previously I had experienced misery but now success, well so far - half an hour in. Of course I can't remember the exact sequence but here is my best guess. I think I installed Python first then SIP, I installed pyqt5 before qt, which can't be right but it seems to work! I used pip to install pyqt5 because I read somewhere this is good thing. I have no idea. Spool to end to see what I didn't do compared with Leo Docs...
---------------------------------------------------------
Get the xcode command line tools which match the highest version of Xcode that works with your version of MacOS. I didn't want to upgrade to Mac silicon versions of the OS and Mojave is the last version of MacOS that will run 32 bit apps which I wanted to stay with.
You don't need the full xcode package, which is good is that is ~8GB). You will need a free Apple developer log in.
I installed 10.3
---------------------------------------------------------
---------------------------------------------------------
I installed everything below while in /usr/local
---------------------------------------------------------
---------------------------------------------------------
First install HomeBrew
---------------------------------------------------------
install python3.9
brew install python
---------------------------------------------------------
install SIP
brew install SIP
---------------------------------------------------------
install pyqt
python3 -m pip install PyQt5
---------------------------------------------------------
install qt5
----------------------------------------------------------
Get Leo from Git
sudo git clone --depth=500 --no-single-branch https://github.com/leo-editor/leo-editor
---------------------------------------------------------
run Leo
python3 launchleo.py
---------------------------------------------------------
Compared to the instructions in the docs, I did not add this to my bash profile-
export PATH=/usr/local/bin:$PATH
# This is for SIP (and PyQt) as suggested by Homebrew
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
I was worried about the PYTHONPATH etc but as these instruction refer to python2.7 I just ignored them. No doubt disaster awaits somewhere.
ta
IH