Skip to content

Commit e79596b

Browse files
committed
Merge pull request winpython#8 from stonebig/mingw64_change2
tweak mingw64 version to python64 version
2 parents 0673a9a + 43e0e16 commit e79596b

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

make.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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
677673
set WINPYXX=%WINPYVER:~0,1%%WINPYVER:~2,1%
674+
675+
rem Python 3.3+ case
678676
set 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
682683
cd %WINPYDIR%
683684
copy /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
686687
REM generate python.34 import file
687688

0 commit comments

Comments
 (0)