summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-04-10 01:16:05 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-04-10 01:16:05 (GMT)
commitc26afcc8fce54b8c920c21e2faf1259a92f4aa1f (patch)
tree7e53ed7c8a1f87bf816a295da1575215253b579b /PCbuild
parenta87f690948d49c009ff4dea08e72a46f14f758ca (diff)
downloadcpython-c26afcc8fce54b8c920c21e2faf1259a92f4aa1f.zip
cpython-c26afcc8fce54b8c920c21e2faf1259a92f4aa1f.tar.gz
cpython-c26afcc8fce54b8c920c21e2faf1259a92f4aa1f.tar.bz2
Put the NASM pulled from svn.python.org at the front of the PATH.
This will prevent failures from the version of NASM installed on buildbots, if the ability to override the version used is desired again later, we can figure out a way to opt in.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/build_ssl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py
index 3ba2483..52daef0 100644
--- a/PCbuild/build_ssl.py
+++ b/PCbuild/build_ssl.py
@@ -175,7 +175,8 @@ def main():
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])
+ old_path = os.environ['PATH']
+ os.environ['PATH'] = os.pathsep.join([nasm_dir, old_path])
break
else:
print('NASM was not found, make sure it is on PATH')