[gpgmepy] swig 4.5 removes python2 support
Funda Wang via Gnupg-devel <[email protected]>
| Newsgroups | gmane.comp.encryption.gpg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, As swig 4.5 has removed python 2.x support, gpgmepy failed to test: 2026-08-07 12:19:17 make all-am 2026-08-07 12:19:17 make[1]: Entering directory '/home/lkp/rpmbuild/BUILD/gpgmepy-2.0.0/tests' 2026-08-07 12:19:17 make[1]: Nothing to be done for 'all-am'. 2026-08-07 12:19:17 make[1]: Leaving directory '/home/lkp/rpmbuild/BUILD/gpgmepy-2.0.0/tests' 2026-08-07 12:19:17 GNUPGHOME=/home/lkp/rpmbuild/BUILD/gpgmepy-2.0.0/tests LC_ALL=C GPG_AGENT_INFO= top_srcdir=.. srcdir=. /usr/bin/python3.11 ./run-tests.py \ 2026-08-07 12:19:17 --interpreters="/usr/bin/python3" --srcdir=. --python-libdir=/home/lkp/rpmbuild/BUILDROOT/python-gpgme-2.0.0-3.oe1.aarch64/usr/lib64/python3.11/site-packages \ 2026-08-07 12:19:17 initial.py t-wrapper.py t-callbacks.py t-data.py t-encrypt.py t-encrypt-sym.py t-encrypt-sign.py t-sign.py t-signers.py t-decrypt.py t-verify.py t-decrypt-verify.py t-sig-notation.py t-export.py t-import.py t-edit.py t-keylist.py t-keylist-from-data.py t-wait.py t-encrypt-large.py t-file-name.py t-idiomatic.py t-protocol-assuan.py t-quick-key-creation.py t-quick-subkey-creation.py t-quick-key-manipulation.py t-quick-key-signing.py final.py 2026-08-07 12:19:17 Traceback (most recent call last): 2026-08-07 12:19:17 File "/home/lkp/rpmbuild/BUILD/gpgmepy-2.0.0/tests/./initial.py", line 24, in <module> 2026-08-07 12:19:17 import gpg 2026-08-07 12:19:17 File "/home/lkp/rpmbuild/BUILDROOT/python-gpgme-2.0.0-3.oe1.aarch64/usr/lib64/python3.11/site-packages/gpg/__init__.py", line 123, in <module> 2026-08-07 12:19:17 from . import core 2026-08-07 12:19:17 File "/home/lkp/rpmbuild/BUILDROOT/python-gpgme-2.0.0-3.oe1.aarch64/usr/lib64/python3.11/site-packages/gpg/core.py", line 10, in <module> 2026-08-07 12:19:17 from . import gpgme 2026-08-07 12:19:17 File "/home/lkp/rpmbuild/BUILDROOT/python-gpgme-2.0.0-3.oe1.aarch64/usr/lib64/python3.11/site-packages/gpg/gpgme.py", line 10, in <module> 2026-08-07 12:19:17 from . import _gpgme 2026-08-07 12:19:17 ImportError: /home/lkp/rpmbuild/BUILDROOT/python-gpgme-2.0.0-3.oe1.aarch64/usr/lib64/python3.11/site-packages/gpg/_gpgme.cpython-311-aarch64-linux-gnu.so: undefined symbol: PyInt_AsLong This is caused by all the references to PY_MAJOR_VERSION be removed also. swig 4.5 only support generating code for python >= 3.5 now. May we should just remove all PY_MAJOR_VERSION in gpgme.i Any comments? _______________________________________________ Gnupg-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gnupg-devel