<div dir="ltr">Here is the (very out of date) fink setup for gdal for comparison:<div><br></div><div><a href="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.info#L43</a><br></div><div><a href="https://github.com/fink/fink-distributions/blob/master/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/gdal-py.patch">https://github.com/fink/fink-distributions/blob/master/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/gdal-py.patch</a><br></div><div><br></div><div>Sorry it's such an old version of GDAL.  I haven't contributed to fink in a while.</div><div><br></div><div>-kurt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 17, 2020 at 6:38 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:monospace;font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">On mardi 16 juin 2020 20:41:28 CEST Ryan Schmidt wrote:</p>
<p style="margin:0px;text-indent:0px">> Hello, I'm a developer with MacPorts. We have this problem: py-gdal is</p>
<p style="margin:0px;text-indent:0px">> written in C++ but it gets compiled using the C compiler and CFLAGS and</p>
<p style="margin:0px;text-indent:0px">> linked using the C++ compiler and LDFLAGS. We would like it to be compiled</p>
<p style="margin:0px;text-indent:0px">> using the C++ compiler and CXXFLAGS. How can this be accomplished? We have</p>
<p style="margin:0px;text-indent:0px">> a need to supply the build with certain flags in CXXFLAGS but they are</p>
<p style="margin:0px;text-indent:0px">> currently being ignored, resulting in build failures like this:</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> <a href="https://trac.macports.org/ticket/57621" target="_blank">https://trac.macports.org/ticket/57621</a></p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> I know that distutils simply has the defect that it does not support C++</p>
<p style="margin:0px;text-indent:0px">> software at all, resulting in the above condition. This bug was never fixed</p>
<p style="margin:0px;text-indent:0px">> before distutils was retired.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> <a href="https://bugs.python.org/issue1222585" target="_blank">https://bugs.python.org/issue1222585</a></p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> I am trying to figure out whether distutils' replacement setuptools is still</p>
<p style="margin:0px;text-indent:0px">> suffering from the same problem and needs to be fixed or whether there is</p>
<p style="margin:0px;text-indent:0px">> something that needs to be changed in py-gdal and other similar projects to</p>
<p style="margin:0px;text-indent:0px">> make it work. Do you know?</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">What is py-gdal exactly ? A build of the "official" GDAL SWIG Python bindings ?</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">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, </p>
<p style="margin:0px;text-indent:0px"><a href="https://github.com/OSGeo/gdal/runs/779871427" target="_blank">https://github.com/OSGeo/gdal/runs/779871427</a> . I guess this must be through setuptools</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div>