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

[Todo] PyPackPack Initial Development #2

Open
31 tasks
haesol1013 opened this issue Jan 10, 2025 · 0 comments
Open
31 tasks

[Todo] PyPackPack Initial Development #2

haesol1013 opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@haesol1013
Copy link
Member

haesol1013 commented Jan 10, 2025

Todo

Overall

  • Create the basic structure of the plugin.
    • Python version setup
      • Version Enum (alpha, rc, normal)
      • do not support automatic build for new python release
    • Build target platform setup
      • Platform-specific min sdk setting
      • Check Kotlin-side enabled build target
    • Hot reload / Code Push
      • Expose direct run button for hot reload server
    • SourceSet setup (dependencies)
      • implementation
      • integration
      • etcs (src/resource path, sourceset naming, ...)
  • Implement a setup for detecting and downloading necessary external tools.
    • Nuitka
    • Host Python
    • MSVC, Clang
    • Poetry or UV
    • Crossenv or something equivalent
  • Define behavior for different compilation modes (e.g., debug/release, project flavors).
    • Support build variants
    • Support project flavors
    • Support methods per compile levels
      • instant (pure python)
      • bytecode (debug: .py+.pyc / release: .pyc only - use debugable flag internally for this so that users can override the settings)
      • mixed (compiled site-packages, pure user code)
      • native (fully compiled code via nuitka or lpython)

Build Tools

  • Configure Nuitka as the primary build tool for Python files.
    • But, give option to choose different compile tool for future.
    • Description: Frontend(PyPackPack) <=> MiddleWare(Nuitka) <=> Backend(Clang, ...)
  • Create scripts for automating the setup of Nuitka and its dependencies.
  • Test the compatibility of generated builds with Android targets.
  • Python code minification

Decisions

  • Determine the installation path for Python (and any user libraries).
  • Decide whether to extract libraries for every build or cache them locally.
  • Define the storage location for files required during the build process.
@haesol1013 haesol1013 self-assigned this Jan 10, 2025
@b-re-w b-re-w added the enhancement New feature or request label Jan 10, 2025
@b-re-w b-re-w transferred this issue from thisisthepy/intellij-python-mutiplatform-plugin Feb 8, 2025
@b-re-w b-re-w changed the title [Todo] Kotlin Gradle Plugin and Build Tools [Todo] PyPackPack Initial Development Feb 8, 2025
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

2 participants