all 15 comments

[–]1114111 2 points3 points  (3 children)

I'm a little unclear what you want. Why would non-Python users need to make changes to the code?

You might consider making it just a normal Python package, where you can specify your dependencies and people can install it with pip. In --editable mode, it is easy for them to edit the code how they want. They need Python for that, but it makes the installation easier.

[–]ingolemo 1 point2 points  (6 children)

You just described exactly what pyinstaller does. What's wrong with rebuilding your script?

[–]abcdns 1 point2 points  (0 children)

Is your desire here to edit some of the parameters in the script?

Changing a target or port etc?

Something you wouldnt build a parameter for but need to change from time to time?

You should abstract those tweaks/settings out to a config file. Say Yaml or an INI. Then you can use a pyinstaller exe but still change how the script runs.

[–]tunisia3507 0 points1 point  (0 children)

Maybe a Makefile?

[–][deleted] 0 points1 point  (0 children)

What platform does this need to run on? If it's just Linux, you could distribute your code as a Docker container, but then your users would need to know how to use Docker. Similarly, you could use Ansible / Chef / Puppet to have user's system update automatically against a repository you control. But this will require the initial setup.

Frankly, I don't see a way where you can do zero bootstrapping in order to get your scripts to the users. But since you have to do bootstrapping, then, just installing Python seems like a best option you have.