5
parser = optparse.OptionParser()
6
parser.add_option("", "--prefix", dest="prefix",default="/usr/local",help="installation prefix (default: /usr/local)")
7
(o, a) = parser.parse_args()
9
print "Configuring prefix=",o.prefix
12
python='python%s.%s' % sys.version_info[:2]
13
file("Makefile","w").write(file("configure.makefile").read() % (prefix, python))