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

Ndusan/lifecycle handlers executable fixes #535

Conversation

n-dusan
Copy link
Contributor

@n-dusan n-dusan commented Sep 20, 2024

Description (e.g. "Related to ...", etc.)

Fixes to lifecycle handlers needed to run python scripts from pre-built pyinstaller taf executable.

Code review checklist (for code reviewer to complete)

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Commit messages are meaningful (see this for details)
  • Tests have been included and/or updated, as appropriate
  • Docstrings have been included and/or updated, as appropriate
  • Changelog has been updated, as needed (see CHANGELOG.md)

Since we introduced LazyGroup, lots of modules are getting dynamically loaded. Add --collect-submodules to pyinstaller to resolve.
@n-dusan n-dusan self-assigned this Sep 20, 2024
@n-dusan n-dusan force-pushed the ndusan/lifecycle-handlers-executable-fixes branch from 65dd2bd to 787b2dd Compare September 27, 2024 22:50
Used to execute arbitrary python scripts using a pre-built taf executable with pyinstaller.
Lots of fixes were needed to get pyinstaller to correctly run a python script from subprocess.
See [1] for pyinstaller discussion and the reasoning behind this.

[1] - https://github.com/orgs/pyinstaller/discussions/5978
@n-dusan n-dusan force-pushed the ndusan/lifecycle-handlers-executable-fixes branch from 8a4c9ec to ae4150b Compare September 27, 2024 22:56
@n-dusan n-dusan marked this pull request as ready for review September 27, 2024 23:06
@renatav renatav merged commit 5f61e58 into openlawlibrary:master Sep 27, 2024
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.

2 participants