@@ -7,6 +7,7 @@ rem 2020-10-25no_more_needed "nbextension enable" no more needed for bqplot, ipy
77rem 2021-01-30: jupyterlab2 final stuff removal
88rem 2021-03-13: notebook classic stuff removal
99rem 2021-05-23: use "%PYTHON%" for the executable instead of "%WINPYDIR%\python.exe"
10+ rem 2021-11-12: patch numba restrictor
1011
1112
1213rem if build error, launch "WinPython Command Prompt.exe" dos ico, then try manual install of requirements.txt
@@ -73,6 +74,28 @@ if exist "%WINPYDIR%\Lib\site-packages\jupyter_lsp-1.1.4.dist-info" (
7374 " %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)+')' )"
7475)
7576
77+ rem * ===========================
78+ rem 2021-11-12: patch numba-0.54.1 restrictor
79+ rem * ===========================
80+ set qt56p = %WINPYDIR% \Lib\site-packages\numba
81+ if exist " %qt56p% " (
82+ " %PYTHON% " -c " from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR% \Lib\site-packages\numba\__init__.py', 'numpy_version > (1, 20):', 'numpy_version > (1, 21): # stonebig relax patch' )"
83+ echo " DID I patch numba%??"
84+ ) else (
85+ echo " I DIDN'T patch of numba !"
86+ )
87+
88+ rem * ===========================
89+ rem 2020-05-15 patch statsmodels-0.12.2 for PyPi
90+ rem * ===========================
91+ if exist " %WINPYDIR% \site-packages\statsmodels-0.12.2.dist-info" (
92+ echo " coucou PyPy"
93+ copy/Y " C:\WinP\tempo_fixes\statsmodels\tools\docstring.py" " %WINPYDIR% \site-packages\statsmodels\tools\docstring.py"
94+ copy/Y " C:\WinP\tempo_fixes\statsmodels\tsa\forecasting\stl.py" " %WINPYDIR% \site-packages\statsmodels\tsa\forecasting\stl.py"
95+ copy/Y " C:\WinP\tempo_fixes\statsmodels\tsa\vector_ar\api.py" " %WINPYDIR% \site-packages\statsmodels\tsa\vector_ar\api.py"
96+
97+ )
98+
7699
77100rem ** Example of live file replacement (not active)**
78101rem * ===========================
0 commit comments