oscarpilote / Ortho4XP

A scenery generator for the X-Plane flight simulator
504 stars 206 forks source link

Add Setup and Start shell scripts for a virtual Python environment on Linux, add EOX with 2021 images as provider #248

Open JT8D-17 opened 7 months ago

JT8D-17 commented 7 months ago

This adds:

w8sl commented 6 months ago

Self contained O4XP install is a genial idea, especially when running and testing several versions of O4XP - thank you!

System GDAL is not visible in venv. pip install gdal==$(gdal-config --version) works within Python 3.12 venv on macOS and GDAL 3.9 gdal_array, used by O4XP, works correctly only in venv created with "--system-site-packages" option with GDAL 3.8.5

$PWD is a bit different on Arch SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) works on all Unix based systems. path=PATH on macOS, it is better to use different name, like "venv_path"

idna, charset-normalizer, urllib, certifi are installed automatically by pip, as dependency of requests. Chardet is deprecated, if I understand correctly (replaced by charset-normalizer)

w8sl commented 6 months ago

scikit-fmm for python 3.12 has been released. Use: pip install scikit-fmm. On macOS, Arch, Ubuntu 24 it is only possible in venv (tested), as global pip/pip3 install has been disabled with Python 12.

w8sl commented 6 months ago

If I understand correctly, it is still compiled from source - by pip install.

JT8D-17 commented 6 months ago

Scikit-fmm installs from pip without issues for me now. I've updated the script and requirements accordingly.