summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-12-03 21:00:29 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2002-12-03 21:00:29 (GMT)
commit03cb7ee9c53215586ece957d254cfc2db45a44eb (patch)
tree5c3d528f021d715bc125ffa3c1e3c9b2d0e09d58 /PCbuild
parent040b00a9ead62045ed29cada3b467b3109bb924d (diff)
downloadcpython-03cb7ee9c53215586ece957d254cfc2db45a44eb.zip
cpython-03cb7ee9c53215586ece957d254cfc2db45a44eb.tar.gz
cpython-03cb7ee9c53215586ece957d254cfc2db45a44eb.tar.bz2
Don't make all the OpenSSL executables, just the library we need.
Contributed by David Bolen.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/build_ssl.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py
index a1f8004..a369a64 100644
--- a/PCbuild/build_ssl.py
+++ b/PCbuild/build_ssl.py
@@ -114,7 +114,27 @@ def main():
os.environ["PATH"] = os.path.split(perl)[0] + \
os.pathsep + \
os.environ["PATH"]
- rc = os.system("ms\\32all.bat")
+ # ms\32all.bat will reconfigure OpenSSL and then try to build
+ # all outputs (debug/nondebug/dll/lib). So we filter the file
+ # to exclude any "nmake" commands and then execute.
+ tempname = "ms\\32all_py.bat"
+
+ in_bat = open("ms\\32all.bat")
+ temp_bat = open(tempname,"w")
+ while 1:
+ cmd = in_bat.readline()
+ print 'cmd', repr(cmd)
+ if not cmd: break
+ if cmd.strip()[:5].lower() == "nmake":
+ continue
+ temp_bat.write(cmd)
+ in_bat.close()
+ temp_bat.close()
+ os.system(tempname)
+ try:
+ os.remove(tempname)
+ except:
+ pass
# Now run make.
print "Executing nmake over the ssl makefiles..."