Skip to content

Commit 6ba5a73

Browse files
committed
update readme and fix
1 parent 57e0c52 commit 6ba5a73

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ GWeatherRouting is an opensource sailing route calculator written in python and:
4343

4444
## Installation
4545

46-
1. Make sure to have Python >= 3.9 installed and the `pip` package manager.
46+
1. Make sure to have Python >= 3.8 installed and the `pip` package manager.
4747
2. Install the following dependencies using your OS package manager (e.g: debian=apt, macos=homebrew) Be aware that some packages have different names with different package managers.
4848
- gobject-introspection
4949
- gdal
@@ -56,6 +56,16 @@ GWeatherRouting is an opensource sailing route calculator written in python and:
5656
- pkg-config
5757
- eccodes
5858

59+
> [!NOTE]
60+
> Ubuntu uses an old version of GDAL and other libraries; in order to use a never version, use the following commands:
61+
> ```
62+
> sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
63+
> sudo apt-get update
64+
> sudo apt-get install gdal-bin libgdal-dev
65+
> sudo apt-get install libgtk-4-dev libgtk-4-1
66+
> pip install git+https://github.com/vext-python/vext@32ad4d1c5f45797e244df1d2816f76b60f28e20e
67+
> ```
68+
5969
> [!NOTE]
6070
> If you are using a `virtualenv` you need to make symbolic links from the UI libraries to your `venv` folder (this is not needed using system interpreter outside venv).
6171

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
buildOptions = {"build_exe": {"packages": ["gi"], "include_files": []}}
2727
executables = [Executable("main.py")] # icon="evm_bg_KYa_icon.ico")
2828

29-
GDAL_VERSION = subprocess.check_output(['gdal-config', '--version'], shell=True).decode('ascii').strip()
29+
GDAL_VERSION = subprocess.check_output(['gdal-config', '--version']).decode('ascii').strip()
3030

3131
requirements = open("requirements.txt", "r").read().split("\n")[:-1]
3232
requirements.append(f'GDAL=={GDAL_VERSION}')

0 commit comments

Comments
 (0)