Skip to content

Commit 5de0b8d

Browse files
committed
patching live cpython-3.10.8 IDLE
#1121
1 parent 9ad4fae commit 5de0b8d

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

run_complement_newbuild.bat

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ rem 2021-01-30: jupyterlab2 final stuff removal
88
rem 2021-03-13: notebook classic stuff removal
99
rem 2021-05-23: use "%PYTHON%" for the executable instead of "%WINPYDIR%\python.exe"
1010
rem 2021-11-12: patch numba restrictor
11-
12-
11+
rem 2022-10-19 patch cpython bug https://github.com/winpython/winpython/issues/1121
12+
1313
rem if build error, launch "WinPython Command Prompt.exe" dos ico, then try manual install of requirements.txt
1414
rem that is: pip install --pre --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq -c C:\WinP\constraints.txt -r C:\WinP\bd39\requirements_test.txt Qt5_requirements64.txt Cod_requirements64.txt
1515
rem python -m pip freeze>C:\WinP\bd39\req_test150.txt between intermediate steps
@@ -46,14 +46,13 @@ rem * ==================
4646
echo finish install of nteract_on_jupyter (2018-12-27)
4747
rem * =================
4848
if exist "%WINPYDIR%\Lib\site-packages\nteract_on_jupyter" "%WINPYDIR%\Scripts\jupyter.exe" serverextension enable nteract_on_jupyter
49-
if exist "%WINPYDIR%\Lib\site-packages\nteract_on_jupyter" "%WINPYDIR%\Scripts\jupyter.exe" server extension enable nteract_on_jupyter
5049

5150

5251
rem * ==================
53-
echo finish install of Voila (2019-07-21)
52+
echo finish install of nteract_on_jupyter (2018-12-27)
5453
rem * =================
55-
if exist "%WINPYDIR%\Lib\site-packages\voila" "%WINPYDIR%\Scripts\jupyter.exe" serverextension enable voila --sys-prefix
56-
if exist "%WINPYDIR%\Lib\site-packages\voila" "%WINPYDIR%\Scripts\jupyter.exe" server extension enable voila --sys-prefix
54+
if exist "%WINPYDIR%\Lib\site-packages\nteract_on_jupyter" "%WINPYDIR%\Scripts\jupyter.exe" serverextension enable nteract_on_jupyter
55+
if exist "%WINPYDIR%\Lib\site-packages\nteract_on_jupyter" "%WINPYDIR%\Scripts\jupyter.exe" server extension enable nteract_on_jupyter
5756

5857

5958

@@ -77,6 +76,18 @@ if exist "%WINPYDIR%\Lib\site-packages\jupyter_lsp-1.1.4.dist-info" (
7776
"%PYTHON%" -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r%this_source%, 'join(self.lines))', 'join(self.lines), encoding='+chr(39)+'utf-8'+chr(39)+')' )"
7877
)
7978

79+
80+
rem * ===========================
81+
rem 2022-10-19 patch cpython bug https://github.com/winpython/winpython/issues/1121
82+
rem * ===========================
83+
set qt56p=%WINPYDIR%\Lib\idlelib\macosx.py
84+
if exist "%qt56p%" (
85+
"%PYTHON%" -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR%\Lib\idlelib\macosx.py', 'from test.support ', '#stonebig patch cpython/pull/98313/files: from test.support' )"
86+
echo "DID I patch numba%??"
87+
) else (
88+
echo "I DIDN'T patch of numba !"
89+
)
90+
8091
rem * ===========================
8192
rem 2021-11-12: patch numba-0.54.1 restrictor
8293
rem * ===========================

0 commit comments

Comments
 (0)