<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
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.checkstep-line-content
{mso-style-name:checkstep-line-content;}
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;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">I copied out the command from install_python_Release.cmake and ran it manually. Then it worked. Not sure why the command not invoked. I don’t see error from “cmake –build . –target install –config Release”.
<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">My setuptools is 40.6.2.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Even Rouault <even.rouault@spatialys.com><br>
<b>Date: </b>Tuesday, March 19, 2024 at 3:22</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">PM<br>
<b>To: </b>Fengting Chen <fengting.chen@oracle.com>, gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject: </b>[External] : Re: [gdal-dev] Python binding installation on windows<o:p></o:p></span></p>
</div>
<p>Hi,<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 19/03/2024 à 20:14, Fengting Chen via gdal-dev a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi, I was able to build the GDAL with python binding on without error on windows. However, “cmake --build . --target install --config Release” command doesn’t install the python site-packages etc to the specified
“CMAKE_INSTALL_PREFIX” directory. The rest of the GDAL components were installed properly. Did I miss anything?
</span><o:p></o:p></p>
</div>
</blockquote>
<p>What I can tell is that .github/workflows/cmake_builds.yml lines 480 "cmake --build $GITHUB_WORKSPACE/build --config Release --target install" seems to do the job on CI :<o:p></o:p></p>
<p><a href="https://urldefense.com/v3/__https:/github.com/OSGeo/gdal/actions/runs/8346148650/job/22842755713__;!!ACWV5N9M2RV99hQ!NOM7D2XYtQ5uEJTXmrU9LjbezoDtYziMv-HzoJZel2bY1bjtiVTyO_N8xFmlx2d4ojECDkfSo3H8rlVUB-37IXX_zS5P$">https://github.com/OSGeo/gdal/actions/runs/8346148650/job/22842755713</a><o:p></o:p></p>
<p>"""<br>
<span class="checkstep-line-content">[...]</span><o:p></o:p></p>
<p><span class="checkstep-line-content">copying build\lib.win-amd64-cpython-310\osgeo\gdal.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo</span><br>
<span class="checkstep-line-content">copying build\lib.win-amd64-cpython-310\osgeo\gdalconst.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\gdalnumeric.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\gdal_array.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\gnm.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\ogr.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\osr.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\_gdal.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\_gdalconst.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\_gdal_array.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\_gnm.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo
</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="checkstep-line-content"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">copying build\lib.win-amd64-cpython-310\osgeo\_ogr.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo</span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
<span class="checkstep-line-content">copying build\lib.win-amd64-cpython-310\osgeo\_osr.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo</span><br>
<span class="checkstep-line-content">[...]</span><o:p></o:p></span></p>
</div>
</div>
<p><span class="checkstep-line-content">"""</span><o:p></o:p></p>
<p><span class="checkstep-line-content">which setuptools version do you use? which logs do you get?</span><o:p></o:p></p>
<p><span class="checkstep-line-content">Perhaps also try running "python setup.py install" manually from the swig/python build directory</span><o:p></o:p></p>
<p><span class="checkstep-line-content">Even</span><o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre><a href="https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!NOM7D2XYtQ5uEJTXmrU9LjbezoDtYziMv-HzoJZel2bY1bjtiVTyO_N8xFmlx2d4ojECDkfSo3H8rlVUB-37IWxxgbNC$">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
</div>
</div>
</body>
</html>