summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-09-05 18:02:20 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-09-05 18:02:20 (GMT)
commit1c2400cfdc22f123c8f11ad43dfec85b028a96c2 (patch)
tree096b1193c0348540ac0495b8e46b6a08754ef355 /PCbuild
parent7b24b273024a66e9a024c8866978db2d2cc0b6d3 (diff)
parent8c9d99ff2227d7a069b29f26004f33d65a1df177 (diff)
downloadcpython-1c2400cfdc22f123c8f11ad43dfec85b028a96c2.zip
cpython-1c2400cfdc22f123c8f11ad43dfec85b028a96c2.tar.gz
cpython-1c2400cfdc22f123c8f11ad43dfec85b028a96c2.tar.bz2
Closes #27407: Merge with 3.5
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/prepare_ssl.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/PCbuild/prepare_ssl.py b/PCbuild/prepare_ssl.py
index f6170f5..d746976 100644
--- a/PCbuild/prepare_ssl.py
+++ b/PCbuild/prepare_ssl.py
@@ -18,6 +18,8 @@
# it should configure OpenSSL such that it is ready to be built by
# ssl.vcxproj on 32 or 64 bit platforms.
+from __future__ import print_function
+
import os
import re
import sys
@@ -89,7 +91,10 @@ def create_asms(makefile, tmp_d):
def copy_includes(makefile, suffix):
dir = 'include'+suffix+'\\openssl'
- os.makedirs(dir, exist_ok=True)
+ try:
+ os.makedirs(dir)
+ except OSError:
+ pass
copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
with open(makefile) as fin:
for line in fin: