Bug#1025259: Bug#1025196: zfp: (autopkgtest) needs update for python3.11: No module named 'zfpy'

Jochen Sprickerhof jspricke at debian.org
Fri Dec 2 08:59:34 GMT 2022


Control: tags -1 + patch

Hi Antonio,

* Antonio Valentino <antonio.valentino at tiscali.it> [2022-12-02 07:56]:
>>We are in the transition of adding python3.11 as a supported Python 
>>version [0]. With a recent upload of python3-defaults the 
>>autopkgtest of zfp fails in testing when that autopkgtest is run 
>>with the binary packages of python3-defaults from unstable. It 
>>passes when run with only packages from testing. In tabular form:
>>
>>                        pass            fail
>>python3-defaults       from testing    3.10.6-3
>>zfp                    from testing    1.0.0-3
>>all others             from testing    from testing
>>
>>I copied some of the output at the bottom of this report.
>>
>>Currently this regression is blocking the migration of 
>>python3-defaults to testing [1]. 
>>https://docs.python.org/3/whatsnew/3.11.html lists what's new in 
>>Python3.11, it may help to identify what needs to be updated.
>>
>>More information about this bug and the reason for filing it can be 
>>found on
>>https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
>>
>>Paul
>>
>>[0] https://bugs.debian.org/1021984
>>[1] https://qa.debian.org/excuses.php?package=python3-defaults
>>
>>https://ci.debian.net/data/autopkgtest/testing/amd64/z/zfp/28796454/log.gz
>>
>>Testing with python3.11:
>>Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>>ModuleNotFoundError: No module named 'zfpy'
>>autopkgtest [01:18:36]: test autodep8-python3
>>
>
>the problem is due to the fact that out d/rules only build builds the 
>Python extension for the default python version (3.10 currently).
>IMHO the solution is configure/build twice with cmake in order to have 
>the Python extension for all the supported Python versions.
>
>If it is OK for you, I plan to work on it during the weekend.
>If you have an better solution or can point me to a package that faced 
>the same issue please let me know.

pybuild has support for this, I've attached a patch. Note that There is 
no need to pass -DCMAKE_BUILD_TYPE=RelWithDebInfo to cmake as debhelper 
does the right thing already.

Cheers Jochen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-pybuild-to-compile-for-all-Python-versions.patch
Type: text/x-diff
Size: 1473 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20221202/23b6e09f/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20221202/23b6e09f/attachment-0001.sig>


More information about the debian-science-maintainers mailing list