Commit d6a6382e authored by Martin Schrön's avatar Martin Schrön
Browse files

Preparing new installation procedure

parent 4d0cc144
......@@ -16,6 +16,8 @@ builds/*
!builds/make.py
!builds/README.md
example_work_folder
env/*
!env/requirements.txt
......
......@@ -122,13 +122,13 @@ Windows has problems with the automatic installation of GDAL and other packages.
or using:
pip install -r requirements_1-windows.txt
pip install -r install/python_packages/requirements_1-windows.txt
*Note:* version numbers and file names my change in the future, so you might want to adapt the file to your needs.
3. Install the remaining "less problematic" packages using:
pip install -r requirements_2.txt
pip install -r install/python_packages/requirements_2.txt
4. The GUI needs further installations of the kivy garden package. By now, your console should know about the command `garden`, if not, restart the console or go directly to its containing folder (e.g., `path/to/Python39/Scripts/garden`). Then execute:
......
@echo off
echo "Please make sure that you have Python 3.10.* installed first."
set /p yesno="Continue?"
echo "Upgrading pip..."
python -m pip install --upgrade pip
echo "Installing precompiled python packages..."
pip install -r python_packages/requirements_1-windows.txt
echo "Installing more friendly python packages..."
pip install -r python_packages/requirements_2.txt
echo "Installing Kivy-Garden packages..."
garden install matplotlib
garden install mapview
echo "Bugfixing Kivy-Garden..."
python scripts/bugfix_kivy_garden.py
echo "Preparing example work folder..."
python scripts/example_folder.py
echo "Done."
\ No newline at end of file
Fiona-1.8.21-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
GDAL-3.4.3-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
pyproj-3.3.1-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
rasterio-1.2.10-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
Shapely-1.8.2-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
Cartopy-0.20.2-cp310-cp310-win_amd64.whl filter=lfs diff=lfs merge=lfs -text
python_packages/GDAL-3.4.3-cp310-cp310-win_amd64.whl
python_packages/pyproj-3.3.1-cp310-cp310-win_amd64.whl
python_packages/Fiona-1.8.21-cp310-cp310-win_amd64.whl
python_packages/Shapely-1.8.2-cp310-cp310-win_amd64.whl
python_packages/rasterio-1.2.10-cp310-cp310-win_amd64.whl
python_packages/Cartopy-0.20.2-cp310-cp310-win_amd64.whl
......@@ -23,6 +23,7 @@ Pillow
xmltodict
uniplot
compress_pickle
pathlib
kivy
https://github.com/kivy-garden/graph/archive/master.zip
https://github.com/kivymd/KivyMD/archive/master.zip
......
#!python
from pathlib import Path
file = Path.home().joinpath('.kivy/garden/garden.matplotlib/backend_kivy.py')
print('Reading %s' % file, end='')
lines = []
finp = open(file, 'r')
for line in finp:
lines.append(line)
finp.close()
print(' (%d Bytes)' % file.stat().st_size)
print('Writing %s' % file, end='')
changed = 0
fout = open(file, 'w')
for line in lines:
if line.startswith('from matplotlib import _png'):
line = '#' + line
changed += 1
fout.write(line)
fout.close()
print(' (%d Bytes)' % file.stat().st_size)
\ No newline at end of file
#!python
import os
from pathlib import Path
this_path = Path(os.path.realpath(__file__))
corn_path = this_path.parents[1]
corny_path = corn_path.joinpath('instantPASDy.py')
corny_gui_path = corn_path.joinpath('cornyApp.py')
print('Creating folder example_work_folder/')
os.makedirs('example_work_folder/input')
print('Creating shortcut example_work_folder/Corny.bat')
with open('example_work_folder/Corny.bat', 'w') as f:
f.write('python %s my_station.cfg' % corny_path)
print('Creating shortcut example_work_folder/Corny-GUI.bat')
with open('example_work_folder/Corny-GUI.bat', 'w') as f:
f.write('python %s my_station.cfg' % corny_gui_path)
print('Copying example config to example_work_folder/my_station.cfg')
with open(corn_path.joinpath('examples/station.cfg'), 'rb') as src, open('example_work_folder/my_station.cfg', 'wb') as dst: dst.write(src.read())
print('Copying example data to example_work_folder/input/station-data.zip')
with open(corn_path.joinpath('examples/input/station-data.zip'), 'rb') as src, open('example_work_folder/input/station-data.zip', 'wb') as dst: dst.write(src.read())
print('Finished. Copy "example_work_folder" anywhere on your disk and start playing with COSMOS data :)')
\ No newline at end of file
GDAL-3.2.2-cp39-cp39-win_amd64.whl
pyproj-3.0.1-cp39-cp39-win_amd64.whl
Fiona-1.8.19-cp39-cp39-win_amd64.whl
Shapely-1.7.1-cp39-cp39-win_amd64.whl
rasterio-1.2.3-cp39-cp39-win_amd64.whl
Cartopy-0.18.0-cp39-cp39-win_amd64.whl
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment