Skip to content

Package precli into a binary #583

Open

Description

@ericwb

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 👍.

Activity

  1. added
    enhancement
    on Sep 4, 2024
  2. removed
    enhancement
    on May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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