Add the posibility to freeze/pack apps from the terminal (like pyinstaller does: pyinstaller main.py)
Closed this issue · 6 comments
Pyinstaller, pip and many more modules have .exe files in the Scripts folder.
When called from the terminal they can accept arguments and do stuff (ex: pip install module)
It would be nicer if pyvan can have something like this pyvan main.py
and this pyvan --no-console main.py
instead of creating a setup file then run it.
@ClimenteA you might just want to add a command-line interface (using either click or argparse) to pyvan.py (or separate it in a cli.py file) and add it as a script to your setup.py which makes it runnable after you install pyvan using pip, e.g.:
You create a /src/cli.py
with the command line interface, with the argument parsing in a main
function.
setup(
...
entry_points={"console_scripts": ["pyvan=src.cli:main"]},
...
)
Then you can install it and call pyvan as an executable script from the console:
pip install pyvan
pyvan main.py --other-arguments etc
Nice, these additions would be great :)
Do you have time to add these changes?
What about this feature to add a icon to exe: feature
For Mac and Linux support isn't there yet, If you have any ideas they are welcome!
Would be nice to release a pyvan version with all the features mentioned up :)
@ClimenteA the icon to exe is more tricky, but I found the following which you might be able to exploit, i.e. using shortcuts you can set icons:
https://pbpython.com/windows-shortcut.html. I am working on one more PR feature for pyvan that I really need for my project, after I finish and I have some time left I might have some time to create a CLI for pyvan.
@ClimenteA Ok the PR is was working on is done see #18, it was a bit more involved than I originally anticipated. But I think overall it would be a great improvement for pyvan.