-
Notifications
You must be signed in to change notification settings - Fork 214
Add Setup and Start shell scripts for a virtual Python environment on Linux, add EOX with 2021 images as provider #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,3 +15,4 @@ Tiles/ | |
| **/*.bak | ||
| **/*.swp | ||
| .last_gui_params.txt | ||
| z_Python_Venv | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| request_type=tms | ||
| grid_type=webmercator | ||
| url_template=https://{switch:a,b,c,d}.s2maps-tiles.eu/wmts/?layer=s2cloudless-2021_3857&style=default&tilematrixset=GoogleMapsCompatible&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fjpeg&TileMatrix={zoom}&TileCol={x}&TileRow={y} | ||
| max_zl=14 | ||
| imagery_dir=grouped |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| certifi | ||
| chardet | ||
| idna | ||
| numpy | ||
| Pillow | ||
| pyproj | ||
| requests | ||
| Rtree | ||
| Shapely | ||
| urllib3 | ||
| build | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #! /bin/bash | ||
|
|
||
| path="$PWD/z_Python_Venv" | ||
|
|
||
| # 1. Create a Python virtual environment | ||
|
|
||
| python -m venv $path | ||
|
|
||
| # 2. Activate Python venv | ||
|
|
||
| source $path/bin/activate | ||
|
|
||
| # 3. Install packages with pip | ||
|
|
||
| pip install -r $PWD/requirements_nover.txt | ||
|
|
||
| # 4. Download scikit-fmm's "meson" branch, compile and install it | ||
|
|
||
| git clone --branch meson https://github.com/scikit-fmm/scikit-fmm.git $path/scikit-fmm | ||
|
||
|
|
||
| python -m build $path/scikit-fmm | ||
|
|
||
| pip install $path/scikit-fmm | ||
|
|
||
| # 6. DONE | ||
|
|
||
| echo " " | ||
| echo "Preparation complete!" | ||
| echo " " | ||
| echo "Use \"$path/bin/python $PWD/Ortho4XP\" to start O4XP" | ||
| echo " " | ||
| echo " " | ||
|
|
||
| # Function: Pause | ||
| function pause(){ | ||
| read -p "$*" | ||
| } | ||
|
|
||
| pause "Press enter to continue... " | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #! /bin/bash | ||
|
|
||
| path="$PWD/z_Python_Venv" | ||
|
|
||
| $path/bin/python $PWD/Ortho4XP.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on the thoughts of the developer/maintainer, I think it's best to version lock this and to replace the existing requirements file as otherwise both files will have to be maintained. This file will eventually fall out of sync as soon as a package makes a breaking change.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm against version locking by default. If a package makes a breaking change, the particular requirement can still be version locked. Besides, I don't see no harm in two requirements files.
But I'm not trying to get the entire PR merged anyway. It's just here for Oscar's consideration and cherry picking changes.