<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 20/03/2024 à 23:11, Fengting Chen a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:PH0PR10MB7061AE823F91878D39DF060393332@PH0PR10MB7061.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">After
upgrading setuptools, the installation on windows worked.
Just curious that why “GDAL-3.8.4-py3.6.egg-info” is created
under the site-packages on windows, while I set up the
PYTHON_ROOT to use python 3.12 and clean up the build
directory to rebuild everything.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">On the other
hand, on linux, when using python 3.12 for the build, the
installation gave a lot of warnings like
“/scratch/gdal/gdal-3.8.4/dist/lib/python3.12/site-packages/osgeo/ogr.py:5954:
SyntaxWarning: invalid escape sequence '\*'” . It seems that
this is the new warning from python 3.12. But I don’t see
this warning in the windows build, which made me suspect if
I was really building on windows using python 3.12.</span></p>
</div>
</blockquote>
<p>Which SWIG version do you use? And can you paste line 5954 (and a
few ones before and after) of your ogr.py ?<br>
</p>
<p>I can't reproduce locally any warning with SWIG 4.1.1 and python
3.12.0 on my Linux. And on our CI with Fedora Rawhide and Python
3.12.2 and SWIG 4.2.1, there is no warning either:<br>
</p>
<p>cf
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/actions/runs/8365025972/job/22901857183">https://github.com/OSGeo/gdal/actions/runs/8365025972/job/22901857183</a></p>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>