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

Package precli into a binary #583

Open
ericwb opened this issue Sep 4, 2024 · 0 comments
Open

Package precli into a binary #583

ericwb opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ericwb
Copy link
Contributor

ericwb commented Sep 4, 2024

Is your feature request related to a problem? Please describe.
Rather than being a PyPI package, an easier to use binary would be a nicer option.

Describe the solution you'd like
Can utilize py2app or py2exe

Describe alternatives you've considered
PyPI package installed via pip

Additional context
Py2App Issues:

  • the parsers instance of run.py can’t be global in order for py2app to work correctly
    • results in the freeze_support() error
  • however, multiprocessing requires parsers to be global because it can’t pickle the tree-sitter native code
  • also need to set multiprocessing.set_start_method("fork") for macOS for py2app
  • solution: don’t use multiprocessing when compiled with py2app
    • it runs, but finds no results
    • the loading of parsers doesn’t work in compiled mode: problem in using entry_points()
    • same issue with getting metadata

Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.

@ericwb ericwb added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant