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

Skip to content

Fix for WinPython-3.6.0.0 #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,14 @@ def _extract_python(self):
os.mkdir(self.python_dir)
if self.python_fname[-3:] == 'zip': # Python3.5
utils.extract_archive(self.python_fname, targetdir=self.python_dir+r'\..')
# new Python 3.5 trick (https://bugs.python.org/issue23955)
pyvenv_file = osp.join(self.python_dir, 'pyvenv.cfg')
open(pyvenv_file, 'w').write('applocal=True\n')
if self.winpyver < "3.6":
# new Python 3.5 trick (https://bugs.python.org/issue23955)
pyvenv_file = osp.join(self.python_dir, 'pyvenv.cfg')
open(pyvenv_file, 'w').write('applocal=True\n')
else:
# new Python 3.6 trick (https://docs.python.org/3.6/using/windows.html#finding-modules)
pypath_file = osp.join(self.python_dir, 'python._pth')
open(pypath_file, 'w').write('.\nLib\nimport site\nDLLs\n#Lib/site-packages\n#python36.zip\n')
else:
utils.extract_msi(self.python_fname, targetdir=self.python_dir)
os.remove(osp.join(self.python_dir, osp.basename(self.python_fname)))
Expand Down
7 changes: 7 additions & 0 deletions winpython/data/packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ description=LaTeX-free PDF generation from Jupyter Notebooks
[nbconvert]
description=Converting Jupyter Notebooks

[nbconvert_reportlab]
description=Convert notebooks to PDF using Reportlab

[nbdime]
description=Tools for diffing and merging of Jupyter notebooks

Expand Down Expand Up @@ -628,6 +631,10 @@ description=A module wrapper for os.path
description=Describing statistical models using symbolic formulas
category=dataoric

[pdfrw]
description=pure Python library that reads and writes PDFs


[peewee]
description=a small, expressive ORM.

Expand Down