@@ -537,13 +537,13 @@ def _create_launchers(self):
537537 if osp .isfile (osp .join (self .python_dir , 'Scripts' , ipython_exe )):
538538 self .create_launcher ('IPython Qt Console.exe' , 'ipython.ico' ,
539539 command = '${WINPYDIR}\pythonw.exe' ,
540- args = '%s qtconsole --matplotlib=inline'
541- % ipython_scr ,
540+ args = '%s qtconsole --matplotlib=inline' %
541+ ipython_scr ,
542542 workdir = '${WINPYDIR}\Scripts' )
543543 self .create_launcher ('IPython Notebook.exe' , 'ipython.ico' ,
544544 command = '${WINPYDIR}\python.exe' ,
545- args = '%s notebook --matplotlib=inline'
546- % ipython_scr ,
545+ args = '%s notebook --matplotlib=inline' %
546+ ipython_scr ,
547547 workdir = '${WINPYDIR}\Scripts' )
548548 if osp .isfile (self .winpydir + self .THG_PATH ):
549549 self .create_launcher ('TortoiseHg.exe' , 'tortoisehg.ico' ,
@@ -667,21 +667,22 @@ def _create_batch_scripts(self):
667667 # Prepare a live patch on python (shame we need it) to have mingw64ok
668668 patch_distutils = ""
669669 if self .py_arch == "win-amd64" :
670- if sys .version_info [0 ] == '3' :
671- use_spec = r"\specs100"
672- else :
673- use_spec = r"\specs90"
674670 patch_distutils = r"""
675671%~dp0Find_And_replace.vbs "%WINPYDIR%\Lib\distutils\cygwinccompiler.py" "-O -W" "-O -DMS_WIN64 -W"
676672
677673set WINPYXX=%WINPYVER:~0,1%%WINPYVER:~2,1%
674+
675+ rem Python 3.3+ case
678676set WINPYMSVCR=libmsvcr100.a
679- IF "%WINPYXX%"=="27" set WINPYMSVCR=libmsvcr90.a
677+ set WINPYSPEC=specs100
680678
679+ rem Python2.7 case
680+ IF "%WINPYXX%"=="27" set WINPYMSVCR=libmsvcr90.a
681+ IF "%WINPYXX%"=="27" set WINPYSPEC=specs90
681682
682683cd %WINPYDIR%
683684copy /Y ..\tools\mingw32\x86_64-w64-mingw32\lib\%WINPYMSVCR% libs\%WINPYMSVCR%
684- copy /Y ..\tools\mingw32\lib\gcc\x86_64-w64-mingw32\4.8.2""" + use_spec + r""" ..\tools\mingw32\lib\gcc\x86_64-w64-mingw32\4.8.2\specs
685+ copy /Y ..\tools\mingw32\lib\gcc\x86_64-w64-mingw32\4.8.2\%WINPYSPEC% ..\tools\mingw32\lib\gcc\x86_64-w64-mingw32\4.8.2\specs
685686
686687REM generate python.34 import file
687688
0 commit comments