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, 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. Any comments? From: Even Rouault <even.roua...@spatialys.com> Date: Wednesday, March 20, 2024 at 12:06 PM To: Fengting Chen <fengting.c...@oracle.com>, gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org> Subject: Re: [External] : Re: [gdal-dev] Python binding installation on windows "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 : 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 <even.roua...@spatialys.com><mailto:even.roua...@spatialys.com> Date: Tuesday, March 19, 2024 at 4:44 PM To: Fengting Chen <fengting.c...@oracle.com><mailto:fengting.c...@oracle.com>, gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> <gdal-dev@lists.osgeo.org><mailto:gdal-dev@lists.osgeo.org> Subject: Re: [External] : Re: [gdal-dev] Python binding installation on windows 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 that's the reason, but that's pretty obsolete. swig/python/pyproject.toml now requires setuptools >= 67 -- http://www.spatialys.com<https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!N3nIB7d9Q9apKmPbtbMITxjtMJmtZqXchODLrjPOsu8tiqHXsnajFBCx-lbUaTurwnt1im6MokPguTmhAGhhBLWTNET6$> My software is free, but my time generally not. -- http://www.spatialys.com<https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!MtKz2hkeas1GDVfGg058wRT3BfVpJbVQEux28UIv5_EFr3ac9FxIv6QntyWBuWQ5PCX6BSVMnnnj90nyEd5oPhcAXgQm$> 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