I have a python program that, using setuptools
, I can build producing an egg or wheel file.
I'm trying to understand the correct way to make this program easily distributable. I would like to be able to give a single file to another linux machine (probably Ubuntu) and run a few commands, and then execute the program directly.
Currently I can install the program, which allows it to be run as follows:
$ python3 -m myprogram
This would be fine if my goal was to be able to import it into other Python programs, but I'd rather have it runnable from anywhere ... like grep
or other utilities.
I understand that it is more typical to add a shebang to a script, but I'm trying to make something that can be easily shared, even when there are multiple files and dependencies, and even when the recipient doesn't have typical Python tools like pip
available.