2 # simple script to download and build g3d in-place
10 print "Connecting to http://downloads.sourceforge.net"
11 response
= urllib2
.urlopen("http://downloads.sourceforge.net/ecls/ecl-0.9l.tgz")
13 ecl_src
= open("ecl-0.9l.tgz","wb")
14 print "Downloading ECL.."
15 ecl_src
.write( response
.read() )
19 targzipf
= tarfile
.open("ecl-0.9l.tgz", "r:gz")
23 (config_out
, config_in
) = popen2
.popen2("./configure -prefix=" + dir)
24 for line
in config_out
:
26 (make_out
, make_in
) = popen2
.popen2("make" + dir)
27 for line
in config_out
:
30 # TO DO .. copy dlls to .exe dir