Repository navigation
Make gen-nutupsconf-aug.py work with Python 3 - #346
Conversation
This makes the script work with Python 2.6+. Fixes #345.
|
Thanks! (If only my other 2-to-3 conversion projects were that simple...) Since this will automatically close the parent issue when merged, I think we need to check and make sure that all of the other instances of scripts invoking
|
What about those?
|
|
@jimklimov could you please check the scripts/Solaris/pre{check,package}.py as mentioned above by @The-Compiler ? you've probably been looking at those already, or otherwise we may want to remove these and get from a new ground (still tied to you ;)). Thanks! |
|
Just in case, what and where should I check? :) The first part seems easier: As far as relevant platforms go, there is Solaris 10u8 (last released by Sun on more or less free-to-use conditions). then there are later releases of Oracle Solaris 10u*, 11.{0,1,2,3} and some beta of 12, and various open descendants of OpenSolaris, the popular general-purpose ones being OpenIndiana Hipster (bleeding-edge rolling-release) and OmniOS (several releases of varied bleediness vs stability). Some customers may quite run Solaris 8 or 9 still, especially on sturdy old boxes with CPUs no longer supported by newer kernels. Oh, and also we have an AIX 6.1 and 7.1 to try and feed this to ;) Solaris 10 has Python 2.4, illumos opensourced ones have 2.6/2.7 (in progress of eradicating 2.6, but not all finished yet), and may have 3.4 or so as an optional package with which not everything works... |
|
The main question is whether those need to work on Python 3 - I guess not? |
|
Well, it depends. Many of them do not have python at all, or not python3. Those that do, do not have a So I guess the main goals are to:
Maybe different levels of "work" are achievable given the (lack of) tools, so perhaps some prepared files should be available in tarballs and/or git, so these other systems can still compile NUT as well - just not recompile everything from origins, It may well be up to Or abandon python and rewrite stuff in POSIX shell, sed, grep... =D |
|
FWIW those scripts would be trivial to reimplement as a shellscript (I'm not volunteering 😆), but at the moment I think it's fine to keep them as-is (with a This should be ready to merge from my POV then. |
|
@The-Compiler meant to merge this earlier - thanks again! (We can open a new issue for Solaris if needed.) |
This makes the script work with Python 2.6+.
Fixes #345.
cc @zman0900