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

Self-contained pandoc-xnos executable #18

Open
tomduck opened this issue Aug 9, 2020 · 1 comment
Open

Self-contained pandoc-xnos executable #18

tomduck opened this issue Aug 9, 2020 · 1 comment
Labels

Comments

@tomduck
Copy link
Owner

tomduck commented Aug 9, 2020

Tom,

Is it possible to build a self-contained pandoc-xnos for Windows executable
so my users do not need to install Python, the package, etc.?

Thanks,
Howard

Originally posted by @hborchew in tomduck/pandoc-tablenos#22 (comment)

@tomduck
Copy link
Owner Author

tomduck commented Aug 9, 2020

Hi Howard,

This is an interesting question. Pyinstaller can be used to build stand-alone executables from python scripts and their dependencies. As a test, I used pyinstaller to create a self-contained pandoc-eqnos executable on my Mac with the following command:

pyinstaller -F ~/git/pandoc-eqnos/pandoc_eqnos.py --name=pandoc-eqnos

Note that ~/git/pandoc-eqnos/ is the root directory of my pandoc-eqnos repository. The executable performs as expected. It is 5.4 MB in size, which is not too bad all things considered.

In principle, executables may be built on any OS that has python installed.

Cheers,
Tom

@tomduck tomduck changed the title Self-contained pandoc-xnos Self-contained pandoc-xnos executable Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant