Skip to content

py2app 0.28.9 no longer byte-compiles ctypes #562

@nicolasferreiralozano

Description

@nicolasferreiralozano

I quickly troubleshot the problem, and the new behavior seems to have been introduced in 3a55dfd.
I am not familiar with the py2app codebase, but it seems that ctypes is being filtered out of byte_compile in

py_files = list(filter(packagefilter, py_files))
.
Is this intended?
I assume it is an unintended side effect of 3a55dfd. Otherwise, it would be odd to byte-compile all other built-in packages but ctypes. I am probably missing something, so pardon my ignorance.
Also, although less important, do you mind explaining what the workaround is all about? Are standalone applications, built with py2app 0.28.8, that run on Python 3.13 and use ctypes, defective?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions