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”.
My setuptools is 40.6.2. From: Even Rouault <even.roua...@spatialys.com> Date: Tuesday, March 19, 2024 at 3:22 PM To: Fengting Chen <fengting.c...@oracle.com>, gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org> Subject: [External] : Re: [gdal-dev] Python binding installation on windows Hi, Le 19/03/2024 à 20:14, Fengting Chen via gdal-dev a écrit : 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? 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 : https://github.com/OSGeo/gdal/actions/runs/8346148650/job/22842755713<https://urldefense.com/v3/__https:/github.com/OSGeo/gdal/actions/runs/8346148650/job/22842755713__;!!ACWV5N9M2RV99hQ!NOM7D2XYtQ5uEJTXmrU9LjbezoDtYziMv-HzoJZel2bY1bjtiVTyO_N8xFmlx2d4ojECDkfSo3H8rlVUB-37IXX_zS5P$> """ [...] copying build\lib.win-amd64-cpython-310\osgeo\gdal.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\gdalconst.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\gdalnumeric.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\gdal_array.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\gnm.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\ogr.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\osr.py -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\_gdal.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\_gdalconst.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\_gdal_array.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\_gnm.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\_ogr.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo copying build\lib.win-amd64-cpython-310\osgeo\_osr.cp310-win_amd64.pyd -> D:\\a\\gdal\\gdal\\install-gdal\Lib\site-packages\osgeo [...] """ which setuptools version do you use? which logs do you get? Perhaps also try running "python setup.py install" manually from the swig/python build directory Even -- http://www.spatialys.com<https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!NOM7D2XYtQ5uEJTXmrU9LjbezoDtYziMv-HzoJZel2bY1bjtiVTyO_N8xFmlx2d4ojECDkfSo3H8rlVUB-37IWxxgbNC$> My software is free, but my time generally not.
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev