Issue #17717: Pull NASM from svn.python.org for OpenSSL build.

This commit is contained in:
Zachary Ware 2014-11-01 17:11:08 -05:00
parent c33a0cc61e
commit aa3ea7ee78
4 changed files with 21 additions and 1 deletions

View file

@ -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)