Skip to content

fix(packaging): make pip-installed CLI entry point work - #19

Open
Gperez88 wants to merge 1 commit into
developfrom
fix/cli-packaging-entry-point
Open

fix(packaging): make pip-installed CLI entry point work#19
Gperez88 wants to merge 1 commit into
developfrom
fix/cli-packaging-entry-point

Conversation

@Gperez88

Copy link
Copy Markdown
Collaborator

Summary

Fixes pr32-sprite-compiler after pip install from git (ModuleNotFoundError: No module named 'main'), and avoids ttkbootstrap 2.x GUI breakage.

Closes #18

Changes

File Change
pr32_sprite_compiler/cli.py New packaged CLI/GUI launcher (lazy GUI import)
pr32_sprite_compiler/__main__.py Support python -m pr32_sprite_compiler
main.py Thin wrapper for local/PyInstaller runs
pyproject.toml Entry point pr32_sprite_compiler.cli:main; pin ttkbootstrap<2; bump 0.3.1
tests/test_cli_entry.py Smoke tests for --help without GUI extras
CHANGELOG.md / README.md / release workflow Document and pin GUI dep

Test plan

  • pytest tests/test_cli_entry.py
  • python -m pr32_sprite_compiler --help
  • Fresh venv: pip install -e . then pr32-sprite-compiler --help
  • Fresh venv: pip install . (non-editable) then pr32-sprite-compiler --help
  • Optional: pip install -e '.[gui]' then GUI launches with no args

Notes

Tool Suite installs this package from @develop for golden compile tests / packaging. After merge, reinstall from develop on the Mac venv.

Made with Cursor

Move the launcher into pr32_sprite_compiler.cli, lazy-load the GUI, and pin ttkbootstrap <2 so pr32-sprite-compiler --help works after a normal pip install.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Gperez88 Gperez88 added the bug Something isn't working label Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant