Skip to content

Regarding passing arguments to pyinstaller when using pack cmd #71

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

Closed
6A61736F6E206E61646572 opened this issue Apr 23, 2019 · 2 comments

Comments

@6A61736F6E206E61646572
Copy link

6A61736F6E206E61646572 commented Apr 23, 2019

Right now there does not seem to be a way to pass arguments to pyinstaller when using the pack command.

In my case I wanted to pass the --onefile and icon=... args, so I resorted to modifying the pyarmor code (options list in run_pyi_makespec) and hard-coding in the above arguments.

Questions:

  1. Am I missing another way to achieve this?
  2. Would a PR that allows arguments to be passed through to pyinstaller when using pack be welcome?
    (or maybe a command that saves the patches spec file so one can use it manually with pyinstaller later?)
@jondy
Copy link
Contributor

jondy commented Apr 23, 2019

There is an un-document option `--options`` which could achieve this:

pyarmor pack --options '--onefile xxx --icon xxx` foo.py

By this option, any extra options could be passed to PyInstaller

PR is welcome, :)

@6A61736F6E206E61646572
Copy link
Author

Cheers that worked! If only I had seen that line yesterday...

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

No branches or pull requests

2 participants