[gdal-dev] Best Practices For Using GDAL As a Dependency In a Python Package?
Alan Snow
alansnow21 at gmail.com
Mon Mar 31 17:59:02 PDT 2025
This is an option worth looking into since you are using conda:
https://github.com/conda-forge/staged-recipes
On Mon, Mar 31, 2025, 7:33 PM Adriano Matos via gdal-dev <
gdal-dev at lists.osgeo.org> wrote:
> Hello,
>
> I've been writing a Python package that uses GDAL as a dependency. I plan
> to make this package available to install via Anaconda at least. Having a
> pip package would be nice, but I keep getting GDAL errors whenever I try to
> compile a pip package. I think it has something to do with the
> system-dependent compilers that GDAL uses. I was able to successfully
> create an Anaconda package, but as of now it is only available to install
> via Windows. I wanted to make this package system-agnostic, but it
> defaulted to my system's OS of Windows when I created the package due to
> the use of GDAL as a dependency. I was considering creating an Anaconda
> package in a Linux environment (maybe using a virtual machine) and then a
> Mac environment so that I can have this package available on all operating
> systems. I was curious to see if anyone knows more about this topic. Am I
> approaching this problem the right way? Thank you!
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250331/0ccc33aa/attachment.htm>
More information about the gdal-dev
mailing list