Closed mgorny closed 1 year ago
Hmm, it seems to be related to building with Cython 3. If I force Cython < 3
in pyproject.toml
), it doesn't assert.
Thanks for confirming the Cython 3 behaviour I was just about to ask. I might just need to keep the pin at < 3
for now and push a new release.
Hmm, this may actually be a bug in Cython. FWICS it's caused by RequirementFlag
using a metaclass
. Even if I replace the metaclass with plain EnumMeta
, it still crashes. I'm going to try to build a standalone reproducer.
Yep, I've got a trivial reproducer. Lemme retry with cython main and then file a bug there.
https://github.com/pythongssapi/python-gssapi/pull/328 puts back the upper bound for Cython in the build deps as well as adds a basic check in CI to hopefully catch this issue in the future if it happens again.
What went wrong?
When Python is built with assertions enabled (
--with-assertions
), thegssapi
extension causes an assertion failure upon import:Backtrace:
Full backtrace: bt.txt
How do we reproduce?
Component versions (python-gssapi, Kerberos, OS / distro, etc.)
python-gssapi 1.8.3 (@ 3a14a03d0c119ec123dc8ce9cd94714113d711bc) mit-krb5 1.21.2 Gentoo Linux amd64