Repository navigation
Conversation
|
@ninsbl with a quick view on the PR, great work! I'll have a closer look in the next days. @landam I think this PR is a very good starting point to unify CI and OSGeo4W build and packaging. as 32bit is obsolete now with OSGeo4W, simplification of building and packaging can be done. OSGeo4W v1 is no longer maintained anymore. how long do you consider to provide winGRASS builds for it? I suggest to drop it with the upcoming 7.8 amd 8 releases. |
| # and create bin.x86_64-w64-mingw32\grass$ver.bat (run this batch file to start | ||
| # GRASS GIS) and dist.x86_64-w64-mingw32\etc\env.bat. | ||
| # | ||
| # -p optionally install GRASS GIS to C:\OSGeo4W64\opt\grass (run |
There was a problem hiding this comment.
Yes, I used -p to create an unzippable package, which is needed in a non-admin environment. Most of this original workflow script is now moved to mswindows/osgeo4w/build_osgeo4w.sh. What happened to the old OSGeo4W build script that was in mswindows/osgeo4w?
There was a problem hiding this comment.
Yes, I used
-pto create an unzippable package, which is needed in a non-admin environment.
Thanks for the info. I wasn`t aware of that. Will see that this is preserved...
Most of this original workflow script is now moved to
mswindows/osgeo4w/build_osgeo4w.sh. What happened to the old OSGeo4W build script that was inmswindows/osgeo4w?
There is still package.sh in mswindows/osgeo4w. I think, in future it would be good to have one build recipe that is used for both packaging and testing (and thus lives in ./mswindows/ and not .github/workflows/ (unless we have a packaging workflow)). The build parts could then be removed from package.sh and just called...
| # and create bin.x86_64-w64-mingw32\grass$ver.bat (run this batch file to start | ||
| # GRASS GIS) and dist.x86_64-w64-mingw32\etc\env.bat. | ||
| # | ||
| # -p optionally install GRASS GIS to C:\OSGeo4W64\opt\grass (run |
There was a problem hiding this comment.
Yes, I used -p to create an unzippable package, which is needed in a non-admin environment. Most of this original workflow script is now moved to mswindows/osgeo4w/build_osgeo4w.sh. What happened to the old OSGeo4W build script that was in mswindows/osgeo4w?
| cp -a $dist $grass_path | ||
| # have a versionless and versioned startup script | ||
| cp -a $bin/grass.py $bin/grass$ver.py | ||
| cp -a $bin/grass$ver.py $grass_path/etc |
There was a problem hiding this comment.
Do we still keep $ver in this case? In fact, I tried to rename it to simply $grass_path/etc/grass.py and when it was called from $grass_path/grass.bat, it was not able to import grass.grassdb.checks saying grass is not a package. I think that's because of grass.py trying to import grass.* from $grass_path/etc/python/grass/* when its name itself is grass (importing itself instead of $grass_path/etc/python/grass/*).
There was a problem hiding this comment.
Yes, this is a problem. We need to resolve it some point.
| # and create bin.x86_64-w64-mingw32\grass$ver.bat (run this batch file to start | ||
| # GRASS GIS) and dist.x86_64-w64-mingw32\etc\env.bat. | ||
| # | ||
| # -p optionally install GRASS GIS to C:\OSGeo4W\opt\grass (run |
There was a problem hiding this comment.
-p is not moved here. It would still be good to have this option to create an unzippable package for non-admin users.
Imagery: move signature files to a <name>/<element> type directory structure (a.k.a. _misc) Full path to signature file now is: location/mapset/signatures/<type>/<name>/<element> This new structure will allow to store arbitrary number of files for each signature. None of existing signature types utilizes the new functionality.
* Added warning about region not being respected * break lines at approx 70-80 chars Co-authored-by: Markus Metz <33666869+metzm@users.noreply.github.com> Co-authored-by: Veronica Andreo <veroandreo@gmail.com> Co-authored-by: Markus Metz <33666869+metzm@users.noreply.github.com>
…SGeo#1866) Bandrefs: make band references optional to simplify generation of signature files. This brings back pre GRASS 8 like functionality by allowing to classify only the same imagery group if band references are missing.
* mswindows: Update crosscompile.sh to 8.0 * mswindows: Drop more versions * Python 38 => 39 * Keep $version in etc/grass$version.py to avoid import conflicts
lib/manage: use correct buffer sizes and check for truncated strings affects mainly `g.rename`
By default rendering in jupyter notebook is based on the first layer extent and resolution. Saved region and current region can also be specified.
I see. Trying a rebase out of a lack of better ideas.
Unfortunately, as this is MS Windows, I am not able to run it locally... |
|
My only idea right now is to remove the version printing for this PR and resolve it later if needed. |
|
This got me very curious, so I forked and tested on CI. with test_simple.sh: with print_versions.sh: |
|
The diff includes load of old changes. The old commits still seem to be on the branch. Back up what you need (e.g. by creating another branch from you branch) and then try to move to the old commits. Best solution likely is to checkout the last commit which is okay (my guess is 61c7b29 or somewhere around), create a new branch, and then cherry-pick what you need from other commits (your unique commits). Then force-push the new branch to this remote branch (see "pushing local branch to a remote branch with a different name"). |
Oh, yes. What a mess, sorry. Thanks for the heads up! |
|
My guess is that you rebased your local branch on top the main branch and then merged with your remote branch instead of replacing it with force push. |
|
With still limited understanding of git, a quick and dirty atempt to cleanup the mess was to move the changes in a new, frech branch. Is it acceptable to just open a new PR from ninsbl@f7eb74d and replace this one? Again, sorry for the mess... |
Yes, although replacing old remote with new local branch is simple: A new PR might be good in anyway at this point just to get rid of the old discussion and start fresh as if nothing happened here.
PRs allow us to make mess, so that's perfectly fine.
+1 |
|
Please, write a descriptive commit message for the new PR when merging. The description in the new PR links this one which links another one without providing much description on its own. |
With this PR merged, CI uses packages from OSGeo4W Version2 (https://github.com/jef-n/OSGeo4W/) to build GRASS GIS using MSYS. Now also shellscript tests are executed. The PR replaces #1873 and parts of #1683. Compilation for tests is now also configured with OpenMP and LAPACK support (amongst others).
With this PR merged, CI uses packages from OSGeo4W Version2 (https://github.com/jef-n/OSGeo4W/) to build GRASS GIS using MSYS. Now also shellscript tests are executed. The PR replaces #1873 and parts of #1683. Compilation for tests is now also configured with OpenMP and LAPACK support (amongst others).
|
Replaced by #2074 |
With this PR merged, CI uses packages from OSGeo4W Version2 (https://github.com/jef-n/OSGeo4W/) to build GRASS GIS using MSYS. Now also shellscript tests are executed. The PR replaces OSGeo#1873 and parts of OSGeo#1683. Compilation for tests is now also configured with OpenMP and LAPACK support (amongst others).
With this PR merged, CI uses packages from OSGeo4W Version2 (https://github.com/jef-n/OSGeo4W/) to build GRASS GIS using MSYS. Now also shellscript tests are executed. The PR replaces OSGeo#1873 and parts of OSGeo#1683. Compilation for tests is now also configured with OpenMP and LAPACK support (amongst others).
With this PR merged, CI uses packages from OSGeo4W Version2 (https://github.com/jef-n/OSGeo4W/) to build GRASS GIS using MSYS. Now also shellscript tests are executed. The PR replaces OSGeo#1873 and parts of OSGeo#1683. Compilation for tests is now also configured with OpenMP and LAPACK support (amongst others).
This PR replaces the build part of #1683
It will also change how OSGeo4W packages are build and use that same configuration for tests.
I leave the milestone open, as I do not think it should delay 8.0, even if it would be good to have testing with current OSGeo4W in place before releasing...