8000 winpython 2021-04 post1 · winpython/winpython@7402dba · GitHub
[go: up one dir, main page]

Skip to content

Commit 7402dba

Browse files
committed
winpython 2021-04 post1
needs to patch numba-0.54.1 from cgohlke at build time to let numpy-1.21.4+mkl comes to Winpython-3.9.8
1 parent 0a87979 commit 7402dba

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

run_complement_newbuild.bat

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ rem 2020-10-25no_more_needed "nbextension enable" no more needed for bqplot, ipy
77
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"
10+
rem 2021-11-12: patch numba restrictor
1011

1112

1213
rem 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

77100
rem ** Example of live file replacement (not active)**
78101
rem * ===========================

0 commit comments

Comments
 (0)
0