import os
-import string
import subprocess
import sys
import time
commandStr = " ".join(command)
if verbose:
- print commandStr
+ print(commandStr)
result = os.system(commandStr)
if dir:
sys.stderr.write("Could not find configure script at %r. Have you run autoconf?\n" % dir)
return 1
- optionsStr = string.join(options, " ") if options else ""
+ optionsStr = " ".join(options) if options else ""
command = "%s %s" % (configure_cmd, optionsStr)
- print command
+ print(command)
result = os.system(command)
#os.chdir(olddir)
return result
class MSVCBuilder(Builder):
- def __init__(self):
- Builder.__init__(self, commandName="nmake.exe", formatName="msvc")
+ def __init__(self, commandName="nmake.exe"):
+ Builder.__init__(self, commandName=commandName, formatName="msvc")
def isAvailable(self):
PATH = os.environ['PATH'].split(os.path.pathsep)