Re: [gdal-dev] Python Wheels for gdal

2021-03-26 Thread Idan Miara
Hi all, I'm wondering how difficult it would be to build the windows wheels with the windows builder on the github CI , . I imagine we would need to install all the supported python versions to build all the pyd files.

Re: [gdal-dev] Python Wheels for gdal

2021-02-23 Thread Idan Miara
Hi Rob, Good point. I don't know - I've added Christoph to this thread. Christoph - can you share with us any build scripts or source file changes you make in order to build these wheels? I was able to combine the cp37+cp38+cp39 from Christoph's wheels for each platform by extracting the wheel fi

Re: [gdal-dev] Python Wheels for gdal

2021-02-23 Thread Robert Coup
Hi Idan, On Wed, 17 Feb 2021 at 12:24, Idan Miara wrote: > From what I can see, the gdal302.dll inside > https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal doesn't depend on any > non-windows DLL. All its dependencies are statically linked. > > Maybe until a better solution is found, and to remedy

Re: [gdal-dev] Python Wheels for gdal

2021-02-17 Thread Idan Miara
>From what I can see, the gdal302.dll inside https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal doesn't depend on any non-windows DLL. All its dependencies are statically linked. Maybe until a better solution is found, and to remedy all the windows users who just want to `pip install gdal`, We could

Re: [gdal-dev] Python Wheels for gdal

2020-02-01 Thread Even Rouault
> There are existing tools. Multibuild uses > https://github.com/pypa/auditwheel. It says in the project README that the > result is "like static linking" From what I understood, this is far from being static linking. It just plays with the RPATH to make sure that the .so from the wheel .libs dir

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Sean Gillies
Hi Even, On Fri, Jan 31, 2020 at 7:53 AM Even Rouault wrote: > On vendredi 31 janvier 2020 15:14:39 CET Mateusz Loskot wrote: > > On Fri, 31 Jan 2020 at 10:58, Christoph Paulik > wrote: > > > My initial motivation was that I would like `pip install gdal` to just > > > work. > > I do share your

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Christoph Gohlke
On 1/30/2020 6:33 AM, Robert Coup wrote: Hi Christoph, For what it's worth, I'm doing some very minimal GDAL builds at the moment with Python bindings. The problem you'll very quickly run into is that GDAL has an enormous set of dependencies. This is what the default Homebrew gdal package d

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Joaquim Manuel Freire Luís
that you refer to. The problem is that I don't build the Python wrapper. Joaquim -Original Message- From: gdal-dev On Behalf Of Jason Roberts Sent: Friday, January 31, 2020 3:28 PM To: Even Rouault ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Python Wheels for gdal As a 15

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Jason Roberts
-- > From: gdal-dev On Behalf Of Even > Rouault > Sent: Friday, January 31, 2020 9:53 AM > To: gdal-dev@lists.osgeo.org > Subject: Re: [gdal-dev] Python Wheels for gdal > > On vendredi 31 janvier 2020 15:14:39 CET Mateusz Loskot wrote: > > On Fri, 31 Jan 2020 at 10:58, Chri

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Even Rouault
On vendredi 31 janvier 2020 15:14:39 CET Mateusz Loskot wrote: > On Fri, 31 Jan 2020 at 10:58, Christoph Paulik wrote: > > My initial motivation was that I would like `pip install gdal` to just > > work. > I do share your view. > The pip install is always the canonical Pythonic way for me and > I

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Mateusz Loskot
On Fri, 31 Jan 2020 at 10:58, Christoph Paulik wrote: > > My initial motivation was that I would like `pip install gdal` to just work. I do share your view. The pip install is always the canonical Pythonic way for me and I'd be very happy myself to be able to install GDAL that way. > I guess tha

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Patrick Young
Here is how I build them for Linux, taken from Sean's work on rasterio. https://github.com/youngpm/gdalmanylinux On Fri, Jan 31, 2020, 2:58 AM Christoph Paulik wrote: > Thank you all for the input. > > My initial motivation was that I would like `pip install gdal` to just > work. > > I like

Re: [gdal-dev] Python Wheels for gdal

2020-01-31 Thread Christoph Paulik
Thank you all for the input. My initial motivation was that I would like `pip install gdal` to just work. I like and use conda-forge daily but in my opinion the whole Python packaging system is broken. There are packages you can install with conda but not with pip and the other way around. So yo

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Mateusz Loskot
On Thu, 30 Jan 2020 at 18:03, jratike80 wrote: > > Sorry if this is a stupid question, but would GDAL wheels serve some similar > purpose than what gdal in conda-forge is serving > https://anaconda.org/conda-forge/gdal/files? https://www.anaconda.com/understanding-conda-and-pip/ Best regards, --

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread jratike80
Sorry if this is a stupid question, but would GDAL wheels serve some similar purpose than what gdal in conda-forge is serving https://anaconda.org/conda-forge/gdal/files? Or something better? -Jukka Rahkonen- Mateusz Loskot wrote > On Thu, 30 Jan 2020 at 17:03, Sean Gillies < > sean@ > > wrote

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Mateusz Loskot
On Thu, 30 Jan 2020 at 17:03, Sean Gillies wrote: > > more versions of GDAL on PyPI will mean more conflicts and more confused > users. And, any related PR accepted to GDAL will eventually mean the maintenance burden shifted to Even and the very few others. IMO, such or any packaging initiative

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Sean Gillies
Hi, On Thu, Jan 30, 2020 at 7:33 AM Robert Coup wrote: > Hi Christoph, > > For what it's worth, I'm doing some very minimal GDAL builds at the moment > with Python bindings. The problem you'll very quickly run into is that GDAL > has an enormous set of dependencies. This is what the default Home

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Robert Coup
Hi Christoph, For what it's worth, I'm doing some very minimal GDAL builds at the moment with Python bindings. The problem you'll very quickly run into is that GDAL has an enormous set of dependencies. This is what the default Homebrew gdal package depends on in macOS: cfitsio, epsilon, expat, fre

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Even Rouault
> Maybe having libgdal and gdal as separate wheels could make sense if no one > solution can be found? I see in https://pip.pypa.io/en/stable/reference/pip_install/#install-no-binary a --no-binary switch that is apparently to not install wheels. So probably a single pip package could be use for b

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Christoph Paulik
On Thu, 30 Jan 2020 at 13:32, Even Rouault wrote: > On jeudi 30 janvier 2020 13:09:03 CET Christoph Paulik wrote: > > Thanks for the hints Even. I could have thought about rasterio myself > since > > I've used their wheels in the past. > > > > Are you open to a merge request for setting this up f

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Even Rouault
On jeudi 30 janvier 2020 13:09:03 CET Christoph Paulik wrote: > Thanks for the hints Even. I could have thought about rasterio myself since > I've used their wheels in the past. > > Are you open to a merge request for setting this up for the official gdal > python packages? It would certainly be

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Christoph Paulik
Thanks for the hints Even. I could have thought about rasterio myself since I've used their wheels in the past. Are you open to a merge request for setting this up for the official gdal python packages? Christoph On Thu, 30 Jan 2020 at 12:59, Even Rouault wrote: > On jeudi 30 janvier 2020 11:1

Re: [gdal-dev] Python Wheels for gdal

2020-01-30 Thread Even Rouault
On jeudi 30 janvier 2020 11:15:35 CET Christoph Paulik wrote: > Hi, > > Has anybody ever tried to build Python wheels for gdal? https://github.com/rasterio/rasterio-wheels could serve as a starting point There's also https://www.lfd.uci.edu/~gohlke/pythonlibs/ for Windows > I'm thinking about i

[gdal-dev] Python Wheels for gdal

2020-01-30 Thread Christoph Paulik
Hi, Has anybody ever tried to build Python wheels for gdal? I'm thinking about it but am not sure if it would even be possible with all the dependencies that gdal has to make a `pip install gdal` work without problems. Christoph -- *Christoph Paulik* // Head of Infrastructure VanderSat // Sate