Skip to content

Commit aeb0425

Browse files
committed
Merge pull request #208 from stonebig/master
Python 3.5 tweak (thanks to cgohlke)
2 parents df9e9e7 + d7fa45e commit aeb0425

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

make.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ def _extract_python(self):
412412
os.mkdir(self.python_dir)
413413
if self.python_fname[-3:] == 'zip': # Python3.5
414414
utils.extract_archive(self.python_fname, targetdir=self.python_dir+r'\..')
415+
# new Python 3.5 trick (https://bugs.python.org/issue23955)
416+
pyvenv_file = osp.join(self.python_dir, 'pyvenv.cfg')
417+
open(pyvenv_file, 'w').write('applocal=True\n')
415418
else:
416419
utils.extract_msi(self.python_fname, targetdir=self.python_dir)
417420
os.remove(osp.join(self.python_dir, osp.basename(self.python_fname)))

0 commit comments

Comments
 (0)