[gdal-dev] [External] : Re: Python binding installation on windows
Fengting Chen
fengting.chen at oracle.com
Wed Mar 20 15:11:42 PDT 2024
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.rouault at spatialys.com>
Date: Wednesday, March 20, 2024 at 12:06 PM
To: Fengting Chen <fengting.chen at oracle.com>, gdal-dev at lists.osgeo.org <gdal-dev at 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.rouault at spatialys.com><mailto:even.rouault at spatialys.com>
Date: Tuesday, March 19, 2024 at 4:44 PM
To: Fengting Chen <fengting.chen at oracle.com><mailto:fengting.chen at oracle.com>, gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org> <gdal-dev at lists.osgeo.org><mailto:gdal-dev at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240320/5d70d0e8/attachment-0001.htm>
More information about the gdal-dev
mailing list