@@ -42,16 +42,16 @@ def find_working_perl(perls):
4242 if rc :
4343 continue
4444 return perl
45- print "Can not find a suitable PERL:"
45+ print ( "Can not find a suitable PERL:" )
4646 if perls :
47- print " the following perl interpreters were found:"
47+ print ( " the following perl interpreters were found:" )
4848 for p in perls :
49- print " " , p
50- print " None of these versions appear suitable for building OpenSSL"
49+ print ( " " , p )
50+ print ( " None of these versions appear suitable for building OpenSSL" )
5151 else :
52- print " NO perl interpreters were found on this machine at all!"
53- print " Please install ActivePerl and ensure it appears on your path"
54- print "The Python SSL module was not built"
52+ print ( " NO perl interpreters were found on this machine at all!" )
53+ print ( " Please install ActivePerl and ensure it appears on your path" )
54+ print ( "The Python SSL module was not built" )
5555 return None
5656
5757# Locate the best SSL directory given a few roots to look into.
@@ -80,9 +80,9 @@ def find_best_ssl_dir(sources):
8080 best_parts = parts
8181 best_name = c
8282 if best_name is not None :
83- print "Found an SSL directory at '%s'" % (best_name ,)
83+ print ( "Found an SSL directory at '%s'" % (best_name ,) )
8484 else :
85- print "Could not find an SSL directory in '%s'" % (sources ,)
85+ print ( "Could not find an SSL directory in '%s'" % (sources ,) )
8686 sys .stdout .flush ()
8787 return best_name
8888
@@ -128,7 +128,7 @@ def main():
128128 if perl is None :
129129 sys .exit (1 )
130130
131- print "Found a working perl at '%s'" % (perl ,)
131+ print ( "Found a working perl at '%s'" % (perl ,) )
132132 sys .stdout .flush ()
133133 # Look for SSL 2 levels up from pcbuild - ie, same place zlib etc all live.
134134 ssl_dir = find_best_ssl_dir (("..\\ .." ,))
@@ -142,7 +142,7 @@ def main():
142142 # Due to a bug in this script, the makefile sometimes ended up empty
143143 # Force a regeneration if it is.
144144 if not os .path .isfile (makefile ) or os .path .getsize (makefile )== 0 :
145- print "Creating the makefiles..."
145+ print ( "Creating the makefiles..." )
146146 sys .stdout .flush ()
147147 # Put our working Perl at the front of our path
148148 os .environ ["PATH" ] = os .path .dirname (perl ) + \
@@ -156,12 +156,12 @@ def main():
156156
157157 # Now run make.
158158 makeCommand = "nmake /nologo PERL=\" %s\" -f \" %s\" " % (perl , makefile )
159- print "Executing ssl makefiles:" , makeCommand
159+ print ( "Executing ssl makefiles:" , makeCommand )
160160 sys .stdout .flush ()
161161 rc = os .system (makeCommand )
162162 if rc :
163- print "Executing " + makefile + " failed"
164- print rc
163+ print ( "Executing " + makefile + " failed" )
164+ print ( rc )
165165 sys .exit (rc )
166166 finally :
167167 os .chdir (old_cd )
@@ -172,7 +172,7 @@ def main():
172172 if arch in ('amd64' , 'ia64' ):
173173 defs = defs + " EXTRA_CFLAGS=/GS- EXTRA_LIBS=bufferoverflowU.lib"
174174 makeCommand = 'nmake /nologo -f _ssl.mak ' + defs + " " + make_flags
175- print "Executing:" , makeCommand
175+ print ( "Executing:" , makeCommand )
176176 sys .stdout .flush ()
177177 rc = os .system (makeCommand )
178178 sys .exit (rc )
0 commit comments