1775.1.2
by Thibault Francois
[FIX] packaging windows and linux |
1 |
#!/usr/bin/env python
|
2 |
import sys |
|
3 |
import optparse,os |
|
4 |
||
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() |
|
8 |
||
9 |
print "Configuring prefix=",o.prefix |
|
10 |
||
11 |
prefix=o.prefix |
|
12 |
python='python%s.%s' % sys.version_info[:2] |
|
13 |
file("Makefile","w").write(file("configure.makefile").read() % (prefix, python)) |