[gdal-dev] How to build py-gdal using the C++ compiler

Kurt Schwehr schwehr at gmail.com
Wed Jun 17 06:57:20 PDT 2020


Here is the (very out of date) fink setup for gdal for comparison:

https://github.com/fink/fink-distributions/blob/master/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/gdal-py.info#L43
https://github.com/fink/fink-distributions/blob/master/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/gdal-py.patch

Sorry it's such an old version of GDAL.  I haven't contributed to fink in a
while.

-kurt

On Wed, Jun 17, 2020 at 6:38 AM Even Rouault <even.rouault at spatialys.com>
wrote:

> On mardi 16 juin 2020 20:41:28 CEST Ryan Schmidt wrote:
>
> > Hello, I'm a developer with MacPorts. We have this problem: py-gdal is
>
> > written in C++ but it gets compiled using the C compiler and CFLAGS and
>
> > linked using the C++ compiler and LDFLAGS. We would like it to be
> compiled
>
> > using the C++ compiler and CXXFLAGS. How can this be accomplished? We
> have
>
> > a need to supply the build with certain flags in CXXFLAGS but they are
>
> > currently being ignored, resulting in build failures like this:
>
> >
>
> > https://trac.macports.org/ticket/57621
>
> >
>
> > I know that distutils simply has the defect that it does not support C++
>
> > software at all, resulting in the above condition. This bug was never
> fixed
>
> > before distutils was retired.
>
> >
>
> > https://bugs.python.org/issue1222585
>
> >
>
> > I am trying to figure out whether distutils' replacement setuptools is
> still
>
> > suffering from the same problem and needs to be fixed or whether there is
>
> > something that needs to be changed in py-gdal and other similar projects
> to
>
> > make it work. Do you know?
>
>
>
> What is py-gdal exactly ? A build of the "official" GDAL SWIG Python
> bindings ?
>
>
>
> Python extension building is always a bit of black magick to me, but our
> continuous integration does include building them on the Mac. For example,
>
> https://github.com/OSGeo/gdal/runs/779871427 . I guess this must be
> through setuptools
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
> _______________________________________________
> 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/20200617/5bbe1144/attachment.html>


More information about the gdal-dev mailing list