MCPcopy Index your code
hub / github.com/python/cpython / find_working_perl

Function find_working_perl

PCbuild/prepare_ssl.py:49–65  ·  view source on GitHub ↗
(perls)

Source from the content-addressed store, hash-verified

47# Being a Perl dummy, the simplest way I can check is if the "Win32" package
48# is available.
49def find_working_perl(perls):
50 for perl in perls:
51 try:
52 subprocess.check_output([perl, "-e", "use Win32;"])
53 except subprocess.CalledProcessError:
54 continue
55 else:
56 return perl
57
58 if perls:
59 print("The following perl interpreters were found:")
60 for p in perls:
61 print(" ", p)
62 print(" None of these versions appear suitable for building OpenSSL")
63 else:
64 print("NO perl interpreters were found on this machine at all!")
65 print(" Please install ActivePerl and ensure it appears on your path")
66
67
68def copy_includes(makefile, suffix):

Callers 1

mainFunction · 0.85

Calls 1

check_outputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…