oscarpilote / Ortho4XP

A scenery generator for the X-Plane flight simulator
498 stars 202 forks source link

install_mac.sh and Install instructions #131

Closed OldSubSailor closed 1 year ago

OldSubSailor commented 4 years ago

What is it that Mac users need the Homebrew master install for? It sure installs a lot of stuff. How much is actually necessary? Why is brew installing Python 3.7 when we go to Pyton.org and install Python 3.8.3 and Python 3.9 on the way?

OldSubSailor commented 4 years ago

Also from my latest testing around, the step to brew install python is not necessary if the latest version of python has been installed from python.org. Using this step installs version 3.7, which can lead to having 3 versions of python on the Mac and can even "confuse" the pip3 install process. That being said, the python recommended install is now:

python3 -m pip install PACKAGE X

troponaut commented 4 years ago

What is it that Mac users need the Homebrew master install for? It sure installs a lot of stuff. How much is actually necessary? Why is brew installing Python 3.7 when we go to Pyton.org and install Python 3.8.3 and Python 3.9 on the way?

Ortho4XP depends on several other packages/binaries. Homebrew installs all those binary dependencies so you don't have to compile them from source (such as GDAL etc.). Every single package that Homebrew installs is absolutely needed.

In addition we use Homebrew to install Python3. Mac OS comes with python 2.7 preinstalled which is no good. To your question about the python version, you shouldn't be downloading python from python.org. Homebrew does that for you with added benefit of managing and maintaining the python installation so avoid having several different python installations.

Also from my latest testing around, the step to brew install python is not necessary if the latest version of python has been installed from python.org. Using this step installs version 3.7, which can lead to having 3 versions of python on the Mac and can even "confuse" the pip3 install process. That being said, the python recommended install is now:

python3 -m pip install PACKAGE X

With respect to your point about the python version, Homebrew is currently installing 3.7.7 (although there is a 3.8.3 version available on Homebrew). The fact that we are installing a some what older version is not necessarily bad, in fact it make sit more likely all our dependencies work great together. In programming, the "latest" version is not always the best way around it. I recommend you stick with 3.7.3 for now.

Finally what you refer to as the "python recommended install" is actually what we also use in the script to install all python dependencies. python3 -m pip install PACKAGE X is equal to pip3 install PACKAGE X

OldSubSailor commented 4 years ago

Howdy, The comment regarding. " Python3 -m pip install ... " is based on this response from the folks at python - Pillow.

====================================================================================

Is the python3 -m pip install X the fix to all this? Yes, in the future, if you see instructions like one of these:

pip install X pip3 install X It's generally better to do:

python3 -m pip install X That way you know you're installing X for the same exact same Python you get when you run python3

OldSubSailor commented 4 years ago

See August update below.

OldSubSailor commented 3 years ago

August 2021

Update regarding Big Sur and up to date non-legacy macOS. Unless you are developing with Python, do not use python from python.org, and delete it if you have it on your Mac. As of this edit, the best route now is to use Homebrew python. Installing Homebrew will also install Apple Command Line Tools along with Python 3.8 which you do NOT want. So you will need to install Homebrew Python and the other dependencies. I would also recommend not installing GDAL. I have included instructions for getting it to work in the X-plane Ortho4XP forums but the USGS tiles come out hosed. However, if you do decide to install GDAL, it will install Homebrew Python. Homebrew python is currently version 3.9.6 and it will take precedence over 3.8 when you call python3.

OldSubSailor commented 3 years ago

11/22/2020 WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.