@alexbuzzbee This is more or less how PyInstaller works, though I will say that you are probably way better off using normal packaging and having people either install your scripts with a system installer or pipx or something.
@alexbuzzbee My understanding is there's a "compile everything into a single file" mode, which is what I was referring to.
Though again I sorta think "Here is a wheel install it with pipx then you can run it" or "install this thing in a virtual env and run it" is not that big a deal.
@pganssle My understanding of PyInstaller is that it takes your script, your modules, their dependencies, the standard library, and the Python interpreter, and packs them into a single executable. That's massive overkill for this project. My target userbase already has Python, or can easily install it. I don't want to make someone set up a virtualenv or really install something at all to run a utility script. Including just the module itself into the script is all I need or want to do.
@pganssle PyInstaller bundles an interpreter and the standard library. I'm not looking to do any of that, just to be able to give someone a script and have them be able to run it with an existing Python installation.