[Python-checkins] python/dist/src/PCbuild build_ssl.py,1.1,1.2

mhammond@users.sourceforge.net mhammond@users.sourceforge.net
2002年12月03日 13:00:35 -0800


Update of /cvsroot/python/python/dist/src/PCbuild
In directory sc8-pr-cvs1:/tmp/cvs-serv1764
Modified Files:
	build_ssl.py 
Log Message:
Don't make all the OpenSSL executables, just the library we need. 
Contributed by David Bolen.
Index: build_ssl.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/PCbuild/build_ssl.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** build_ssl.py	3 Dec 2002 05:47:26 -0000	1.1
--- build_ssl.py	3 Dec 2002 21:00:29 -0000	1.2
***************
*** 115,119 ****
 os.pathsep + \
 os.environ["PATH"]
! rc = os.system("ms\32円all.bat")
 
 # Now run make.
--- 115,139 ----
 os.pathsep + \
 os.environ["PATH"]
! # ms32円all.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\32円all_py.bat"
! 
! in_bat = open("ms\32円all.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.

AltStyle によって変換されたページ (->オリジナル) /