Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supplement modulegraph by having a runtime module-discovery component #486

Open
glyph opened this issue Mar 18, 2023 · 1 comment
Open

Comments

@glyph
Copy link
Contributor

glyph commented Mar 18, 2023

A very common failure mode for me with py2app is to develop in --alias mode and then forget to test that the app launches at all before building it; and when it fails to launch, it almost always fails because I need to add a static import statement to account for some dynamic runtime behavior inside a library that is doing who-knows-what to dynamically satisfy its dependencies in a way that modulegraph can't read.

However, all of these would be avoided if, when running in --alias mode, I could click a button to dump out a list of everything that's been imported into a big --includes configuration for py2app.

It would be great if there were some test mode where py2app would build, launch, read the list of imported modules, and then exit. modulegraph is fine like 80% of the time, so this would really only need to be invoked if some kind of startup self-test fails.

@ronaldoussoren
Copy link
Owner

Seems like a useful addition.

I'm currently limiting the release branch to bugfixes only as I'm (very slowly) rewriting py2app on the master branch. I'll look into adding this feature to that code base once it actually builds applications (getting there, but I'm having very little time to work on this at the moment).

Long term I'd still prefer to include recipes for anything remotely popular on PyPI, but that will take time and doesn't account for the long tail of packages and in-house development.

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

No branches or pull requests

2 participants