@@ -26,9 +26,9 @@ cd /d %new_winpydir%
26
26
call scripts\env.bat
27
27
@ echo off
28
28
29
- rem * ==========================
30
- rem * When Python has no mingwpy
31
- rem * ==========================
29
+ rem * ==========================
30
+ echo * When Python has no mingwpy
31
+ rem * ==========================
32
32
if not exist " %WINPYDIR% \Lib\site-packages\mingwpy" set pydistutils_cfg = %WINPYDIR% \..\settings\pydistutils.cfg
33
33
if not exist " %WINPYDIR% \Lib\site-packages\mingwpy" echo [config]> %pydistutils_cfg%
34
34
@@ -57,28 +57,21 @@ rem * =================
57
57
if exist " %WINPYDIR% \Lib\site-packages\seaborn" " %WINPYDIR% \python.exe" -c " import seaborn as sns;sns.set();sns.load_dataset('iris')"
58
58
59
59
60
- rem * =================
61
- echo opengl PyQt5 patch 2018-01-06
62
- rem * ==================
63
- set qt56p = %WINPYDIR% \Lib\site-packages\PyQt5\Qt\bin
64
- set qt56dest = %WINPYDIR% \Lib\site-packages\PyQt5\Qt\bin\opengl32sw.dll
65
- if exist " %qt56p% " if not exist " %qt56dest% " (
66
- if " %WINPYARCH% " == " WIN32" copy " C:\WinPython\bd35\patch_qt570\opengl32sw-32\opengl32sw.dll" " %WINPYDIR% \Lib\site-packages\PyQt5\Qt\bin\opengl32sw.dll"
67
- )
68
- if not " %WINPYARCH% " == " WIN32" copy " C:\WinPython\bd35\patch_qt570\opengl32sw-64\opengl32sw.dll" " %WINPYDIR% \Lib\site-packages\PyQt5\Qt\bin\opengl32sw.dll"
69
- )
70
-
71
60
rem ** Active patchs**
72
61
rem * ===========================
73
- rem 2021-04-17 patch jupyter_lsp-1.1.4
62
+ echo 2021-04-17 patch jupyter_lsp-1.1.4
74
63
rem see https://github.com/krassowski/jupyterlab-lsp/pull/580/files
75
64
rem * ===========================
65
+
66
+ rem in DOS, the variable must be set befor the parenthesis block....
67
+ set this_source = '%WINPYDIR% \Lib\site-packages\jupyter_lsp\virtual_documents_shadow.py'
76
68
if exist " %WINPYDIR% \Lib\site-packages\jupyter_lsp-1.1.4.dist-info" (
77
- set this_source = ' %WINPYDIR% \Lib\site-packages\jupyter_lsp\virtual_documents_shadow.py'
69
+ echo " ** % this_source% ** "
78
70
%WINPYDIR% \python.exe -c " from winpython.utils import patch_sourcefile;patch_sourcefile(r%this_source% , 'read_text()', 'read_text(encoding='+chr(39)+'utf-8'+chr(39)+')' )"
79
71
%WINPYDIR% \python.exe -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)+')' )"
80
72
)
81
73
74
+
82
75
rem ** Example of live file replacement (not active)**
83
76
rem * ===========================
84
77
rem 2020-05-15 patch jedi-0.17.0
0 commit comments