@@ -9,6 +9,7 @@ rem *****************************
9
9
10
10
rem algorithm:
11
11
rem 0.0 Initialize target environment
12
+ rem 0.9 Python-3.13.0b3 free-threading tweak
12
13
rem 1.0 Do cosmetic complements
13
14
rem 2.0 Do active patches
14
15
rem 3.0 Don't do patches in reserve (examples)
@@ -31,6 +32,29 @@ cd /d %new_winpydir%
31
32
call scripts\env.bat
32
33
@ echo off
33
34
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
+
34
58
echo ----------------------------------------
35
59
echo 1.0 (%date% %time% ) Do cosmetic complements
36
60
echo ----------------------------------------
@@ -106,7 +130,7 @@ if exist "%WINPYDIR%\Lib\site-packages\pip-23.0.dist-info" (
106
130
:the_end
107
131
108
132
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)
110
134
echo ----------------------------------------
111
135
112
136
echo JUPYTERLAB_DIR=%JUPYTERLAB_DIR% default is ~/.jupyter/lab
0 commit comments