3 ms·
You can always roll out your favorite Python version and just use that. No need to use the latest unless you have security sensitive requirements.
by rawbot 4y ago
You can always roll out your favorite Python version and just use that. No need to use the latest unless you have security sensitive requirements.
- salmo 4y agoThis is my problem. I’ve gotten to where the extra work to use a language that generates a binary is lower than the distribution problem with Python. I’ve rewritten 3 CLIs because it’s too much of a pain for people to get them set up. I still use it for myself to whip through a CSV, collate data from APIs. Sometimes a tiny API or web app (I really don’t like webdev) where I can deploy a container or pipeline deployment. And I don’t have to use all the new bells and whistles. But so many do. The type hinting system in particular is so much more painful to read (to me) than in a language with actual types.
- rawbot 4y agoYou can generate a binary of your script (and all dependencies) with pyinstaller[1], and then your users don't have to worry about anything other than running the binary. > PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules. PyInstaller supports Python 3.7 and newer, and correctly bundles many major Python packages such as numpy, matplotlib, PyQt, wxPython, and others. [1] https://pyinstaller.org/en/stable/ https://pyinstaller.org/en/stable/
- salmo 4y agoOh that’s cool. I’d tried some of these years ago, but they were painful, didn’t support Python 3.x, etc. I’ll have to check it out.