Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Fengting Chen via gdal-dev
It turned out that I didn’t specify swig_executable and an old version of swig was used on linux build. After fixing this, the warning was gone. Back on windows build, with swig 4.2.1, python 3.12.2, setuptools 69.2, cmake still couldn’t install python binding. And I have to manually invoke set

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Even Rouault via gdal-dev
Le 20/03/2024 à 23:11, Fengting Chen a écrit : 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 t

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Fengting Chen via gdal-dev
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. On the other hand, on linux,

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Even Rouault via gdal-dev
"cmake --build . --target gdal_GEOR" should shorten a bit the build time. It will try to rebuild the main "GDAL" target, but if it is already up to date, that should be just a matter for the build system to check that no files need to be rebuilt. Le 20/03/2024 à 17:00, Fengting Chen a écrit :

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-20 Thread Fengting Chen via gdal-dev
Thanks for the suggestion. I can upgrade the setuptools and try again. Another question: is it possible to only build a specific driver plugin without rebuilding the GDAL? From: Even Rouault Date: Tuesday, March 19, 2024 at 4:44 PM To: Fengting Chen , gdal-dev@lists.osgeo.org Subject: Re: [Ex

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-19 Thread Even Rouault via gdal-dev
Le 19/03/2024 à 21:38, Fengting Chen a écrit : 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. Not sure if

Re: [gdal-dev] [External] : Re: Python binding installation on windows

2024-03-19 Thread Fengting Chen via gdal-dev
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 Date: Tuesday, March 19, 2024 at 3:22 PM To