Skip to content

fix: lazy import Babel in build backend - #43

Merged
robcohen merged 5 commits into
mainfrom
fix/lazy-babel-import
Jan 26, 2026
Merged

robcohen merged 5 commits into
mainfrom
fix/lazy-babel-import

Conversation

@robcohen

@robcohen robcohen commented Jan 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Move Babel imports inside _compile_translations() to avoid requiring Babel when pip prepares metadata
  • Major change: Skip pip install of rustfava entirely - use direct PyInstaller approach following Tauri best practices
  • Update PyInstaller spec to work without pip install (uses source directly)
  • Build frontend assets and compile translations manually before PyInstaller
  • Add shell: bash for Windows compatibility
  • Fix Rust toolchain action by adding explicit toolchain: stable

Test plan

  • All build-sidecar jobs pass (Linux, macOS, Windows)
  • All build-tauri jobs pass

🤖 Generated with Claude Code

robcohen and others added 5 commits January 26, 2026 15:27
Move Babel imports inside _compile_translations() to avoid requiring
Babel when pip prepares metadata. This fixes the CI build failure
where pip couldn't import the build backend because Babel wasn't
available in the subprocess.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Following Tauri + Python sidecar best practices:
- Don't pip install rustfava (avoids build backend issues)
- Install only runtime dependencies via pip
- Build frontend assets with bun manually
- Compile translations with inline Python script
- Update PyInstaller spec to use source directly without import

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@robcohen
robcohen merged commit 04ad378 into main Jan 26, 2026
@robcohen
robcohen deleted the fix/lazy-babel-import branch January 26, 2026 21:58
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.

1 participant