mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #17717: Pull NASM from svn.python.org for OpenSSL build.
This commit is contained in:
parent
c33a0cc61e
commit
aa3ea7ee78
4 changed files with 21 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue