Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b24303

Browse files
authored
Merge pull request #412 from stonebig/master
Fix for WinPython-3.6.0.0
2 parents b1b822f + b3dd036 commit 6b24303

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

make.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,14 @@ def _extract_python(self):
389389
os.mkdir(self.python_dir)
390390
if self.python_fname[-3:] == 'zip': # Python3.5
391391
utils.extract_archive(self.python_fname, targetdir=self.python_dir+r'\..')
392-
# new Python 3.5 trick (https://bugs.python.org/issue23955)
393-
pyvenv_file = osp.join(self.python_dir, 'pyvenv.cfg')
394-
open(pyvenv_file, 'w').write('applocal=True\n')
392+
if self.winpyver < "3.6":
393+
# new Python 3.5 trick (https://bugs.python.org/issue23955)
394+
pyvenv_file = osp.join(self.python_dir, 'pyvenv.cfg')
395+
open(pyvenv_file, 'w').write('applocal=True\n')
396+
else:
397+
# new Python 3.6 trick (https://docs.python.org/3.6/using/windows.html#finding-modules)
398+
pypath_file = osp.join(self.python_dir, 'python._pth')
399+
open(pypath_file, 'w').write('.\nLib\nimport site\nDLLs\n#Lib/site-packages\n#python36.zip\n')
395400
else:
396401
utils.extract_msi(self.python_fname, targetdir=self.python_dir)
397402
os.remove(osp.join(self.python_dir, osp.basename(self.python_fname)))

winpython/data/packages.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ description=LaTeX-free PDF generation from Jupyter Notebooks
528528
[nbconvert]
529529
description=Converting Jupyter Notebooks
530530
531+
[nbconvert_reportlab]
532+
description=Convert notebooks to PDF using Reportlab
533+
531534
[nbdime]
532535
description=Tools for diffing and merging of Jupyter notebooks
533536
@@ -628,6 +631,10 @@ description=A module wrapper for os.path
628631
description=Describing statistical models using symbolic formulas
629632
category=dataoric
630633
634+
[pdfrw]
635+
description=pure Python library that reads and writes PDFs
636+
637+
631638
[peewee]
632639
description=a small, expressive ORM.
633640

0 commit comments

Comments
 (0)