Skip to content

Fix build for Python 3.13#39

Merged
khaledhosny merged 1 commit intofonttools:masterfrom
justvanrossum:fix-313
Oct 8, 2025
Merged

Fix build for Python 3.13#39
khaledhosny merged 1 commit intofonttools:masterfrom
justvanrossum:fix-313

Conversation

@justvanrossum
Copy link
Copy Markdown
Contributor

@justvanrossum justvanrossum commented Jun 27, 2025

I'm not sure what (dependency?) caused this, but I currently can't build openstep_plist on macOS with Python 3.13.5:

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
              elif isinstance(obj, bool):
                  self.dest.push_back(c'1' if obj else c'0')
                  return 1
              elif isinstance(obj, float):
                  return self.write_short_float_repr(obj)
              elif isinstance(obj, (int, long)):
                                         ^
      ------------------------------------------------------------
      
      src/openstep_plist/writer.pyx:200:35: undeclared name not builtin: long

I noticed while I tried to build for Free-threaded Python, which which we don't build wheels yet.

I'm assuming the 'long' thing is a remnant from Python 2.

@khaledhosny khaledhosny linked an issue Oct 8, 2025 that may be closed by this pull request
@khaledhosny khaledhosny merged commit f0bab77 into fonttools:master Oct 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile error with Python 3.14

2 participants