@@ -6,6 +6,7 @@ rem 2020-09-27 Jupyterlab-3 5S (looking for missing detail)
66rem 2020-10-25no_more_needed "nbextension enable" no more needed for bqplot, ipyleaflet, ipympl
77rem 2021-01-30: jupyterlab2 final stuff removal
88rem 2021-03-13: notebook classic stuff removal
9+ rem 2021-05-23: use "%PYTHON%" for the executable instead of "%WINPYDIR%\python.exe"
910
1011
1112rem 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
1617rem then drag & drop "run_complement_newbuild.bat" file in the dos window and launch it
1718
1819@ 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")
2021rem this .bat is placed at root (buildir34, buildir34\FlavorJulia, ...)
2122set origin = %~dp0
2223set new_winpydir = %1
2324
25+ echo new_winpydir= ********%new_winpydir% ***********************************************************
2426cd /d %new_winpydir%
2527
2628call scripts\env.bat
@@ -54,7 +56,7 @@ if exist "%WINPYDIR%\Lib\site-packages\voila" "%WINPYDIR%\Scripts\jupyter.exe"
5456rem * =================
5557echo finish install seaborn iris example
5658rem * =================
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')"
5860
5961
6062rem ** Active patchs**
@@ -67,8 +69,8 @@ rem in DOS, the variable must be set befor the parenthesis block....
6769set this_source = '%WINPYDIR% \Lib\site-packages\jupyter_lsp\virtual_documents_shadow.py'
6870if exist " %WINPYDIR% \Lib\site-packages\jupyter_lsp-1.1.4.dist-info" (
6971 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)+')' )"
7274)
7375
7476
@@ -88,7 +90,7 @@ rem KEEP as example for next time needed
8890
8991set qt56p = %WINPYDIR% \Lib\site-packages\tornado-6.0.3.dist-info
9092if 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' )"
9294 rem echo "DID I patch %qt56p% ??"
9395) else (
9496 rem echo "I DIDN'T patch of %qt56p% !"
@@ -130,7 +132,7 @@ if exist "%WINPYDIR%\..\settings\.spyder-py3\temp.py" del "%WINPYDIR%\..\setti
130132rem * ====================
131133echo patch spyder update reflex (2019-05-18 : spyder, not spyderlib !)
132134rem * ====================
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' )"
134136
135137rem * ====================
136138echo summary 20202-04-11
0 commit comments