| 1 | # Script for building the _ssl and _hashlib modules for Windows.
|
|---|
| 2 | # Uses Perl to setup the OpenSSL environment correctly
|
|---|
| 3 | # and build OpenSSL, then invokes a simple nmake session
|
|---|
| 4 | # for the actual _ssl.pyd and _hashlib.pyd DLLs.
|
|---|
| 5 |
|
|---|
| 6 | # THEORETICALLY, you can:
|
|---|
| 7 | # * Unpack the latest SSL release one level above your main Python source
|
|---|
| 8 | # directory. It is likely you will already find the zlib library and
|
|---|
| 9 | # any other external packages there.
|
|---|
| 10 | # * Install ActivePerl and ensure it is somewhere on your path.
|
|---|
| 11 | # * Run this script from the PCBuild directory.
|
|---|
| 12 | #
|
|---|
| 13 | # it should configure and build SSL, then build the _ssl and _hashlib
|
|---|
| 14 | # Python extensions without intervention.
|
|---|
| 15 |
|
|---|
| 16 | import os, sys, re
|
|---|
| 17 |
|
|---|
| 18 | # Find all "foo.exe" files on the PATH.
|
|---|
| 19 | def find_all_on_path(filename, extras = None):
|
|---|
| 20 | entries = os.environ["PATH"].split(os.pathsep)
|
|---|
| 21 | ret = []
|
|---|
| 22 | for p in entries:
|
|---|
| 23 | fname = os.path.abspath(os.path.join(p, filename))
|
|---|
|
|---|