Skip to content

Add auto-resolve package names in install()#18

Merged
JessicaTegner merged 1 commit intomasterfrom
jpypandoc_integration
Mar 13, 2026
Merged

Add auto-resolve package names in install()#18
JessicaTegner merged 1 commit intomasterfrom
jpypandoc_integration

Conversation

@JessicaTegner
Copy link
Owner

@JessicaTegner JessicaTegner commented Mar 13, 2026

Summary

  • Move _resolve_package_name from compiler.py to tlmgr.py and integrate it into install()
  • When a direct tlmgr install fails, install() now automatically resolves .sty file names to the correct TeX Live package name via tlmgr search and retries
  • Simplifies the compiler's auto-install loop and makes name resolution available to all callers (including pypandoc integration)

Related

Test plan

  • All 76 existing tests pass
  • Verify install("booktabs") still works directly
  • Verify install() resolves a mismatched .sty name to the correct package

🤖 Generated with Claude Code

Move _resolve_package_name from compiler.py to tlmgr.py and integrate
it into install(). When a direct tlmgr install fails, install() now
automatically resolves .sty file names to the correct TeX Live package
name via tlmgr search and retries. This simplifies the compiler's
auto-install loop and makes name resolution available to all callers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JessicaTegner JessicaTegner merged commit d1e4779 into master Mar 13, 2026
24 checks passed
@JessicaTegner JessicaTegner deleted the jpypandoc_integration branch March 13, 2026 20:03
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