summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-11-01 22:11:08 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2014-11-01 22:11:08 (GMT)
commitaa3ea7ee78f35f1b88801b6a00833dcae384dc37 (patch)
treee5ed8ff2553dbd73be27643251d1ad68e2f0108b /PCbuild
parentc33a0cc61ea763bde926b22492785f3b2b66685c (diff)
downloadcpython-aa3ea7ee78f35f1b88801b6a00833dcae384dc37.zip
cpython-aa3ea7ee78f35f1b88801b6a00833dcae384dc37.tar.gz
cpython-aa3ea7ee78f35f1b88801b6a00833dcae384dc37.tar.bz2
Issue #17717: Pull NASM from svn.python.org for OpenSSL build.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/build_ssl.py11
-rw-r--r--PCbuild/readme.txt4
2 files changed, 14 insertions, 1 deletions
diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py
index 260cbf3..f3c65fc 100644
--- a/PCbuild/build_ssl.py
+++ b/PCbuild/build_ssl.py
@@ -182,6 +182,17 @@ def main():
if ssl_dir is None:
sys.exit(1)
+ # add our copy of NASM to PATH. It will be on the same level as openssl
+ for dir in os.listdir(os.path.join(ssl_dir, os.pardir)):
+ if dir.startswith('nasm'):
+ nasm_dir = os.path.join(ssl_dir, os.pardir, dir)
+ nasm_dir = os.path.abspath(nasm_dir)
+ os.environ['PATH'] += os.pathsep.join(['', nasm_dir])
+ break
+ else:
+ print('NASM was not found, make sure it is on PATH')
+
+
old_cd = os.getcwd()
try:
os.chdir(ssl_dir)
diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt
index 3a30bc8..2193c84 100644
--- a/PCbuild/readme.txt
+++ b/PCbuild/readme.txt
@@ -182,7 +182,9 @@ _ssl
to be somewhere on your PATH. More recent versions of OpenSSL may
need a later version of NASM. If OpenSSL's self tests don't pass,
you should first try to update NASM and do a full rebuild of
- OpenSSL.
+ OpenSSL. If you use the Tools\buildbot\external(-amd64).bat method
+ for getting sources, it also downloads a version of NASM which the
+ ssl build script will add to PATH.
If you like to use the official sources instead of the files from
python.org's subversion repository, Perl is required to build the