8000 add free-threading tweak · LeeXyan/winpython@c76621c · GitHub
[go: up one dir, main page]

Skip to content

Commit c76621c

Browse files
committed
add free-threading tweak
1 parent 3d01601 commit c76621c

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

run_complement_newbuild.bat

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ rem *****************************
99

1010
rem algorithm:
1111
rem 0.0 Initialize target environment
12+
rem 0.9 Python-3.13.0b3 free-threading tweak
1213
rem 1.0 Do cosmetic complements
1314
rem 2.0 Do active patches
1415
rem 3.0 Don't do patches in reserve (examples)
@@ -31,6 +32,29 @@ cd /d %new_winpydir%
3132
call scripts\env.bat
3233
@echo off
3334

35+
echo ----------------------------------------
36+
echo 0.9 (%date% %time%) Python-3.13.0b3 free-threading tweak
37+
echo ----------------------------------------
38+
39+
if exist "%WINPYDIR%\python3.13t.exe" (
40+
41+
rem "%PYTHON%" -m pip install --pre --no-index --trusted-host=None --find-links=C:\WinP\bd313\packages.win-amd64t --upgrade cython
42+
43+
44+
rem make python3.13t binaries the default
45+
move "%WINPYDIR%\python.exe" "%WINPYDIR%\python_classic.exe"
46+
move "%WINPYDIR%\pythonw.exe" "%WINPYDIR%\pythonw_classic.exe"
47+
copy/Y "%WINPYDIR%\python3.13t.exe" "%WINPYDIR%\python.exe"
48+
copy/Y "%WINPYDIR%\pythonw3.13t.exe" "%WINPYDIR%\pythonw.exe"
49+
50+
rem a bug when ipython "help(len)"
51+
rem "%PYTHON%" -c "from winpython.utils import patch_sourcefile;patch_sourcefile(r'%WINPYDIR%\\Lib\_pyrepl\pager.py', 'tempfilepager(', 'tempfile_pager(' )"
52+
53+
) else (
54+
echo "I DIDN'T patch python3.13 !"
55+
)
56+
57+
3458
echo ----------------------------------------
3559
echo 1.0 (%date% %time%) Do cosmetic complements
3660
echo ----------------------------------------
@@ -106,7 +130,7 @@ if exist "%WINPYDIR%\Lib\site-packages\pip-23.0.dist-info" (
106130
:the_end
107131

108132
echo ----------------------------------------
109-
rem 3.0 (%date% %time%) clean-ups (to move to upper stage)
133+
echo 3.0 (%date% %time%) clean-ups (to move to upper stage)
110134
echo ----------------------------------------
111135

112136
echo JUPYTERLAB_DIR=%JUPYTERLAB_DIR% default is ~/.jupyter/lab

0 commit comments

Comments
 (0)
0