Bug#1055682: gdal b-d's on python3-all-dev, but only builds for the default python version

2023-11-09 Thread Matthias Klose

Package: src:gdal
Version: 3.7.3+dfsg-1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

gdal b-d's on python3-all-dev, but only builds for the default python 
version.


Please build for all supported Python3 versions, or avoid the b-d's on 
the -all packages.




Bug#1055682: gdal b-d's on python3-all-dev, but only builds for the default python version

2023-11-09 Thread Sebastiaan Couwenberg

Control: tags -1 moreinfo

On 11/10/23 07:55, Matthias Klose wrote:
gdal b-d's on python3-all-dev, but only builds for the default python 
version.


No it doesn't.

The build is execute for all versions returned by py3versions -sv:


https://salsa.debian.org/debian-gis-team/gdal/-/blob/master/debian/rules#L18

https://salsa.debian.org/debian-gis-team/gdal/-/blob/master/debian/rules#L46

https://salsa.debian.org/debian-gis-team/gdal/-/blob/master/debian/rules#L51-L53
https://salsa.debian.org/debian-gis-team/gdal/-/blob/master/debian/rules#L99

https://salsa.debian.org/debian-gis-team/gdal/-/blob/master/debian/rules#L104

https://salsa.debian.org/debian-gis-team/gdal/-/blob/master/debian/rules#L109

What makes you think that only the default is used?

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Bug#1055682: gdal b-d's on python3-all-dev, but only builds for the default python version

2023-11-10 Thread Matthias Klose

see
https://launchpadlibrarian.net/696024489/buildlog_ubuntu-noble-amd64.gdal_3.7.3+dfsg-1_BUILDING.txt.gz

python3-gdal_3.7.3+dfsg-1_amd64.deb doesn't have any extensions for 3.12.



Bug#1055682: gdal b-d's on python3-all-dev, but only builds for the default python version

2023-11-10 Thread Matthias Klose

On 10.11.23 13:30, Matthias Klose wrote:

see
https://launchpadlibrarian.net/696024489/buildlog_ubuntu-noble-amd64.gdal_3.7.3+dfsg-1_BUILDING.txt.gz

python3-gdal_3.7.3+dfsg-1_amd64.deb doesn't have any extensions for 3.12.


[...]
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "None"
Traceback (most recent call last):
  File "/<>/build-py3.12/swig/python/setup.py", line 14, 
in 

from setuptools.command.build_ext import build_ext
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 9, 
in 

import distutils.core
ModuleNotFoundError: No module named 'distutils'


so this fails because distutils is removed in 3.12.  And the build 
system ignores the build failure.




Bug#1055682: gdal b-d's on python3-all-dev, but only builds for the default python version

2023-11-10 Thread Sebastiaan Couwenberg

On 11/10/23 13:30, Matthias Klose wrote:

see
https://launchpadlibrarian.net/696024489/buildlog_ubuntu-noble-amd64.gdal_3.7.3+dfsg-1_BUILDING.txt.gz


That shows:

 for V in 3.12 3.11; do \

 -- Found Python: /usr/bin/python3.12 (found suitable exact version 
"3.12.0") found components: Interpreter Development NumPy 
Development.Module Development.Embed


 -- Found Python: /usr/bin/python3 (found suitable exact version 
"3.11.6") found components: Interpreter Development NumPy 
Development.Module Development.Embed


 copying 
build/lib.linux-x86_64-cpython-312/osgeo/_gdal.cpython-312-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-312/osgeo/_gdalconst.cpython-312-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-312/osgeo/_osr.cpython-312-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-312/osgeo/_ogr.cpython-312-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-312/osgeo/_gnm.cpython-312-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-312/osgeo/_gdal_array.cpython-312-x86_64-linux-gnu.so 
-> osgeo


 copying 
build/lib.linux-x86_64-cpython-311/osgeo/_gdal.cpython-311-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-311/osgeo/_gdalconst.cpython-311-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-311/osgeo/_osr.cpython-311-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-311/osgeo/_ogr.cpython-311-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-311/osgeo/_gnm.cpython-311-x86_64-linux-gnu.so 
-> osgeo
 copying 
build/lib.linux-x86_64-cpython-311/osgeo/_gdal_array.cpython-311-x86_64-linux-gnu.so 
-> osgeo


The extensions does get built for both.


python3-gdal_3.7.3+dfsg-1_amd64.deb doesn't have any extensions for 3.12.


The installation for 3.12 fails:

 Traceback (most recent call last):
   File "/<>/build-py3.12/swig/python/setup.py", line 14, 
in 

 from setuptools.command.build_ext import build_ext
   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 
9, in 

 import distutils.core
 ModuleNotFoundError: No module named 'distutils'

There is an issue with setuptools in your build environment.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Bug#1055682: gdal b-d's on python3-all-dev, but only builds for the default python version

2023-11-11 Thread Matthias Klose

On 10.11.23 13:51, Sebastiaan Couwenberg wrote:

python3-gdal_3.7.3+dfsg-1_amd64.deb doesn't have any extensions for 3.12.


The installation for 3.12 fails:

  Traceback (most recent call last):
    File "/<>/build-py3.12/swig/python/setup.py", line 14, 
in 

  from setuptools.command.build_ext import build_ext
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 
9, in 

  import distutils.core
  ModuleNotFoundError: No module named 'distutils'

There is an issue with setuptools in your build environment.

Kind Regards,


it might be difficult to reproduce in Debian without having 3.12 enabled 
as the default.  But your reluctance to point a removed distutils module 
in 3.12 to some issue in "my build environment" is odd.


I won't waste any more effort into this until you get the RC report from 
the next test rebuild of unstable.


Matthias



Bug#1055682: gdal b-d's on python3-all-dev, but only builds for the default python version

2023-11-11 Thread Sebastiaan Couwenberg

On 11/11/23 10:36, Matthias Klose wrote:

On 10.11.23 13:51, Sebastiaan Couwenberg wrote:
python3-gdal_3.7.3+dfsg-1_amd64.deb doesn't have any extensions for 
3.12.


The installation for 3.12 fails:

  Traceback (most recent call last):
    File "/<>/build-py3.12/swig/python/setup.py", line 
14, in 

  from setuptools.command.build_ext import build_ext
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 
9, in 

  import distutils.core
  ModuleNotFoundError: No module named 'distutils'

There is an issue with setuptools in your build environment.


it might be difficult to reproduce in Debian without having 3.12 enabled 
as the default.  But your reluctance to point a removed distutils module 
in 3.12 to some issue in "my build environment" is odd.


I won't waste any more effort into this until you get the RC report from 
the next test rebuild of unstable.


`python3.12 -c "from setuptools.command.build_ext import build_ext"` 
works just fine in Debian unstable.


setuptools bundles distutils, so I suspect _distutils_hack.override is 
not working as expected.


Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1