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

Skip to content

Commit 614be8f

Browse files
authored
Merge pull request #501 from stonebig/master
compatiblity tweak for Neard users
2 parents e79cbbe + 403d5b9 commit 614be8f

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

make.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,13 @@ def _create_batch_scripts_initial(self):
553553

554554
self.create_batch_script('env.bat', r"""@echo off
555555
set WINPYDIRBASE=%~dp0..
556+
556557
rem get a normalize path
557-
CALL :NORMALIZEPATH "%WINPYDIRBASE%"
558-
set WINPYDIRBASE=%RETVAL%
559-
set RETVAL=
558+
set WINPYDIRBASETMP=%~dp0..
559+
pushd %WINPYDIRBASETMP%
560+
set WINPYDIRBASE=%CD%
561+
set WINPYDIRBASETMP=
562+
popd
560563
561564
set WINPYDIR=%WINPYDIRBASE%"""+"\\" + self.python_name + r"""
562565
@@ -609,16 +612,6 @@ def _create_batch_scripts_initial(self):
609612
echo #WINPYWORKDIR = %%HOMEDRIVE%%%%HOMEPATH%%\Documents\WinPython%%WINPYVER%%\Notebooks>>"%winpython_ini%"
610613
)
611614
612-
rem *****
613-
rem http://stackoverflow.com/questions/1645843/resolve-absolute-path-from-relative-path-and-or-file-name
614-
rem *****
615-
:: ========== FUNCTIONS ==========
616-
EXIT /B
617-
618-
:NORMALIZEPATH
619-
SET RETVAL=%~dpfn1
620-
EXIT /B
621-
622615
""")
623616

624617
self.create_batch_script('WinPython_PS_Prompt.ps1', r"""

winpython/data/packages.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ description=D3 Viewer for Matplotlib
562562
[mpmath]
563563
description=Python library for arbitrary-precision floating-point arithmetic
564564
565+
[mypy]
566+
description=Optional static typing for Python
567+
565568
[msgpack-python]
566569
description=MessagePack (de)serializer.
567570
@@ -1312,6 +1315,9 @@ description=An API and command-line toolset for Twitter (twitter.com)
13121315
[twython]
13131316
description=Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs
13141317
1318+
[typed_ast]
1319+
description=a fork of Python 2 and 3 ast modules with type comment support
1320+
13151321
[uritemplate]
13161322
description=URI templates
13171323

0 commit comments

Comments
 (0)