Make ilcsoft-install work with python3. Most of the trivial changes are done via 2to3. Some others that are necessary for this to work with both python2 and python3 are:
Fixes to some (relative) imports
Importing getoutput and getstatusoutput from the subprocess module if possible and only fallback to the commands module if it does not exist.
Replace execfile with exec, compile and open combination.
Some changes to the Version class to make it work with the much stricter comparison rules in python3.
BEGINRELEASENOTES
ilcsoft-install
work with python3. Most of the trivial changes are done via2to3
. Some others that are necessary for this to work with both python2 and python3 are:getoutput
andgetstatusoutput
from thesubprocess
module if possible and only fallback to thecommands
module if it does not exist.execfile
withexec
,compile
andopen
combination.Version
class to make it work with the much stricter comparison rules in python3.ENDRELEASENOTES
A few things could still be improved with a probably non-negligible amount of time, e.g.
check_output
function for getting things from the shell