Repository navigation
Easier ntegration with existing TinyTeX installs - #49
abravalheri wants to merge 7 commits into
Conversation
|
@abravalheri Thanks for putting this together. Nice to see you around. I'd be happy to have PyTinyTeX find existing installations, and --tinytex is a useful addition. There are two things I'd like fixed before merging:
Please add a regression test for each case, with deletion mocked for the uninstall test. One other thing I noticed: the cache takes precedence over get_tinytex_path(base=...), so an explicit path is ignored once another installation has been resolved. That predates this PR and doesn’t need to block it, but the new precedence test clears the cache first and therefore misses that case. Lastly, if you haven't seen it, or maybe you came from it, I'm also the maintainer ofpypandoc which you might also find useful. |
- Resolve existing installs from ~/.pytinytex, the official installer/R dir, and $XDG_DATA_HOME/TinyTeX - Keep explicit base / PYTINYTEX_TINYTEX authoritative - Report every tried path on failure
- --tinytex PATH sets PYTINYTEX_TINYTEX for every command - download installs to --tinytex / PYTINYTEX_TINYTEX when given
- Add Installing TinyTeX section - Add Finding an existing TinyTeX section - Show --tinytex CLI example
|
Thank you very much for taking the time to look at this, @JessicaTegner. I made heavier changes to the function that handles the discovery than the initial version of the submitted PR. I also have used Thank you very much for sharing |
First of all, thank you very much for maintaining this very useful project!
I like the philosophy behind TinyTeX, and the Python wrapper you guys put together is very convenient (Python is almost ubiquitous nowadays and per-installed on Linux and other POSIX OSs, so it's very easy to get started and lightweight — a great alternative for people who don't use R).
Recently, I tried to use it on a new computer and stumbled on #43, so I decided to read through the code a bit and play with ways of making PyTinyTeX work together with TinyTeX installations made independently of PyTinyTeX. I thought some convenience machinery would be nice, which motivated me to share this PR (others may find it useful too).
Please let me know if you'd consider these additions, or if you have any thoughts.
(Possibly this should be stacked after #45).