diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -29,7 +29,7 @@ EXAMPLES: python3 setup.py sdist """ -import os,sys,re,string,getopt,shutil,commands,glob +import os,sys,re,string,getopt,shutil,subprocess,glob from distutils.core import setup,Extension from metagen.version import __version__ @@ -58,10 +58,10 @@ def debug(ftn,txt): def fatal(ftn,txt): msg="%s.%s:FATAL:%s\n" % (modname,ftn,txt) - raise SystemExit, msg + raise SystemExit(msg) def usage(): - print __doc__ + print(__doc__) #============================= def main(): @@ -87,7 +87,7 @@ if __name__ == '__main__': usage() sys.exit(0) elif opt[0]=='-v' or opt[0]=='--version': - print modname+": version="+version + print(modname+": version="+version) elif opt[0]=='--exec-prefix': exec_prefix=opt[1] |