|
@bunniestudios | |||||
|
Time to add feature to 7-year old Python script: 10 mins
Time to set up Python env so I could run script: 3 hours
Python scripts have a maintenance-free shelf life of a few years: it is not suitable for long-term codebases.
I wish someone told me before I started using Python.
|
||||||
|
||||||
|
Matt Guthaus
@mguthaus
|
24. tra |
|
What special python environment was this??
|
||
|
|
||
|
bunnie
@bunniestudios
|
24. tra |
|
It's just Python2.7 but I've been recently developing in Python3 and that broke something in Python2 which broke pip...and all the guides are like "use pip to fix it" and I'm like but pip doesn't work...and now there is some notice about Python2.7 support going away in 2020...😕
|
||
|
|
||
|
ubbut
@ubbut1
|
24. tra |
|
But is there a more sustainable alternative?
|
||
|
|
||
|
bunnie
@bunniestudios
|
24. tra |
|
I've got C code from the 90's that still compiles and runs...
|
||
|
|
||
|
Kevin Hubbard
@bml_khubbard
|
24. tra |
|
The stagnation of Perl has the advantage here.
|
||
|
|
||
|
|
Sam Littlewood
@samlittlewood
|
24. tra |
|
Tcl would like you to hold its beer.
|
||
|
|
||
|
Edje Electronics
@EdjeElectronics
|
24. tra |
|
Python repositories can come with a dependencies file that automatically installs all package versions needed in the environment. Is that not a good long term solution? Genuinely curious since I am still a rookie to #Python.
|
||
|
|
||
|
3-5 30-50x elves in a trench coat
@leftpaddotpy
|
24. tra |
|
Yes, it's just that @bunniestudios appears to have used an installation method which broke pip for one of the Python versions (which I would blame on the OS primarily for not packaging a usable one).
|
||
|
|
||
|
Ivan Kozik
@ivankozik
|
24. tra |
|
An ad for nixos.org/nix/ - you can use nix-shell on Linux or macOS to bring in old Python and dependencies e.g. nix-shell -p python27 -p python27Packages.twisted
|
||
|
|
||
|
Stephen A. Ridley
@s7ephen
|
25. tra |
|
Dude. DOCKER!
|
||
|
|
||