ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

How to install latest version? #79

Closed howff closed 3 months ago

howff commented 3 months ago

The version on conda-forge seems to be lagging behind the version on github. How difficult is it to get that updated?

In the situation where github is newer, do you have some instructions for people who have installed via conda-forge to get the latest version from github?

Thanks!

gillins commented 3 months ago

On Linux, you should be able to clone the repository and run pip install . from within it.

But yes, you are right there have been many changes recently that haven't made it into a new release. Some of these changes have been quite significant. I just need to do a bit more testing before I'm happy, hopefully in the next few weeks I'll do a new release. In the meantime let me know if you find any issues with the latest on github.

howff commented 3 months ago

Thanks for your response.

I normally use Linux but I've got to help people using Windows so I'm trying to install via conda then update from pip+git, but it doesn't seem to work:

(tuiview) C:\Users\Me>pip install git+https://github.com/ubarsc/tuiview
Collecting git+https://github.com/ubarsc/tuiview
  Cloning https://github.com/ubarsc/tuiview to c:\users\me\appdata\local\temp\pip-req-build-kjdhec2_
  Running command git clone --filter=blob:none --quiet https://github.com/ubarsc/tuiview 'C:\Users\Me\AppData\Local\Temp\pip-req-build-kjdhec2_'
  Resolved https://github.com/ubarsc/tuiview to commit 17c5d3b1f38ae1f66fda20e2a8e68aa993d52111
  Preparing metadata (setup.py) ... done

It doesn't seem to update the version of tuiview in the conda environment, any ideas why?

(My ultimate goal is to use conda constructor to provide a self-contained Windows installer, which works for the version in conda, but I'd like to be able to include the latest version from git instead)

howff commented 3 months ago

I'm not sure what pip install git+ is doing, or not doing, but it does nothing.

When I manually clone the repo and run python ./setup.py install it fails because I don't have a C compiler installed on Windows. However, I've got a workaround which allows me to build a Windows installer which includes a wheel that gets installed to overwrite the conda package. Would you like me to document that?

gillins commented 3 months ago

Yes you will need a C compiler. Windows is a pain because of this. Is there any reason you need the very latest on Windows? The recent changes are mainly about RATs that are larger than 100million rows which does seem an edge case (although something I come across in my own work). Anyway, I will try and get a new release out very soon.

howff commented 3 months ago

Here's the steps to create a Windows installer, with (optionally) incorporating the latest code from git instead of conda, just in case anyone reading this issue in future is interested. https://github.com/ubarsc/tuiview/pull/82

gillins commented 2 months ago

TuiView 1.2.14 now released. Thanks for your patience everyone.