@@ -6,6 +6,7 @@ rem 2020-09-27 Jupyterlab-3 5S (looking for missing detail)
6
6
rem 2020-10-25no_more_needed "nbextension enable" no more needed for bqplot, ipyleaflet, ipympl
7
7
rem 2021-01-30: jupyterlab2 final stuff removal
8
8
rem 2021-03-13: notebook classic stuff removal
9
+ rem 2021-05-23: use "%PYTHON%" for the executable instead of "%WINPYDIR%\python.exe"
9
10
10
11
11
12
rem if build error, launch "WinPython Command Prompt.exe" dos ico, then try manual install of requirements.txt
@@ -16,11 +17,12 @@ rem ( drag & drop "requirements.txt" file in the dos window a the end
16
17
rem then drag & drop "run_complement_newbuild.bat" file in the dos window and launch it
17
18
18
19
@ echo off
19
- rem %1 is WINPYDIR being prepared
20
+ rem %1 is WINPYDIRBASE being prepared, (names winpydir of python build batch) (like "...bd37\buPyPy\WPy64-37100b2")
20
21
rem this .bat is placed at root (buildir34, buildir34\FlavorJulia, ...)
21
22
set origin = %~dp0
22
23
set new_winpydir = %1
23
24
25
+ echo new_winpydir= ********%new_winpydir% ***********************************************************
24
26
cd /d %new_winpydir%
25
27
26
28
call scripts\env.bat
@@ -54,7 +56,7 @@ if exist "%WINPYDIR%\Lib\site-packages\voila" "%WINPYDIR%\Scripts\jupyter.exe"
54
56
rem * =================
55
57
echo finish install seaborn iris example
56
58
rem * =================
57
- if exist " %WINPYDIR% \Lib\site-packages\seaborn" " %WINPYDIR% \python.exe " -c " import seaborn as sns;sns.set();sns.load_dataset('iris')"
59
+ if exist " %WINPYDIR% \Lib\site-packages\seaborn" " %PYTHON% " -c " import seaborn as sns;sns.set();sns.load_dataset('iris')"
58
60
59
61
60
62
rem ** Active patchs**
@@ -67,8 +69,8 @@ rem in DOS, the variable must be set befor the parenthesis block....
67
69
set this_source = '%WINPYDIR% \Lib\site-packages\jupyter_lsp\virtual_documents_shadow.py'
68
70
if exist " %WINPYDIR% \Lib\site-packages\jupyter_lsp-1.1.4.dist-info" (
69
71
echo " **%this_source% **"
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)+')' )"
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)+')' )"
72
+ " %PYTHON% " -c " from winpython.utils import patch_sourcefile;patch_sourcefile(r%this_source% , 'read_text()', 'read_text(encoding='+chr(39)+'utf-8'+chr(39)+')' )"
73
+ " %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)+')' )"
72
74
)
73
75
74
76
@@ -88,7 +90,7 @@ rem KEEP as example for next time needed
88
90
89
91
set qt56p = %WINPYDIR% \Lib\site-packages\tornado-6.0.3.dist-info
90
92
if exist " %qt56p% " (
91
- %WINPYDIR% \python.exe -c " from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR% \Lib\site-packages\tornado\platform\asyncio.py', 'import asyncio', 'import asyncio;asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # python-3.8.0' )"
93
+ " %PYTHON% " -c " from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR% \Lib\site-packages\tornado\platform\asyncio.py', 'import asyncio', 'import asyncio;asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # python-3.8.0' )"
92
94
rem echo "DID I patch %qt56p% ??"
93
95
) else (
94
96
rem echo "I DIDN'T patch of %qt56p% !"
@@ -130,7 +132,7 @@ if exist "%WINPYDIR%\..\settings\.spyder-py3\temp.py" del "%WINPYDIR%\..\setti
130
132
rem * ====================
131
133
echo patch spyder update reflex (2019-05-18 : spyder, not spyderlib !)
132
134
rem * ====================
133
- %WINPYDIR% \python.exe -c " from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR% \Lib\site-packages\spyder\config\main.py', ' '+chr(39)+'check_updates_on_startup'+chr(39)+': True', ' '+chr(39)+'check_updates_on_startup'+chr(39)+': False' )"
135
+ " %PYTHON% " -c " from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR% \Lib\site-packages\spyder\config\main.py', ' '+chr(39)+'check_updates_on_startup'+chr(39)+': True', ' '+chr(39)+'check_updates_on_startup'+chr(39)+': False' )"
134
136
135
137
rem * ====================
136
138
echo summary 20202-04-11
0 commit comments