[gdal-dev] Python binding installation on windows

Even Rouault even.rouault at spatialys.com
Tue Mar 19 12:22:04 PDT 2024


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

"""
[...]

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
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240319/cd1e977a/attachment.htm>


More information about the gdal-dev mailing list