@@ -2,7 +2,7 @@ rem generate_a_winpython_distro.bat: to be launched from a winpython directory,
2
2
@ echo on
3
3
4
4
REM Initialize variables
5
- if " %my_release_level% " == " " set my_release_level = b3
5
+ if " %my_release_level% " == " " set my_release_level = b1
6
6
if " %my_create_installer% " == " " set my_create_installer = True
7
7
8
8
rem Set archive directory and log file
@@ -26,8 +26,8 @@ if "%target_python_exe%"=="" set target_python_exe=python.exe
26
26
27
27
rem Set Python target release based on my_python_target
28
28
if %my_python_target% == 311 set my_python_target_release = 3119& set my_release = 1
29
- if %my_python_target% == 312 set my_python_target_release = 31210& set my_release = 0
30
- if %my_python_target% == 313 set my_python_target_release = 3133& set my_release = 0
29
+ if %my_python_target% == 312 set my_python_target_release = 31210& set my_release = 1
30
+ if %my_python_target% == 313 set my_python_target_release = 3133& set my_release = 1
31
31
if %my_python_target% == 314 set my_python_target_release = 3140& set my_release = 0
32
32
33
33
echo -------------------------------------- >> %my_archive_log%
@@ -114,6 +114,43 @@ cd /D %~dp0
114
114
call %my_buildenv% \scripts\env.bat
115
115
python.exe -c " from make import *;make_all(%my_release% , '%my_release_level% ', pyver='%my_pyver% ', basedir=r'%my_basedir% ', verbose=True, architecture=%my_arch% , flavor='%my_flavor% ', install_options=r'%my_install_options% ', find_links=r'%my_find_links% ', source_dirs=r'%my_source_dirs% ', create_installer='%my_create_installer% ', rebuild=False, python_target_release='%my_python_target_release% ')" >> %my_archive_log%
116
116
117
+ echo -------------------------------------- >> %my_archive_log%
118
+ echo " (%date% %time% ) generate lock files" >> %my_archive_log%
119
+ echo -------------------------------------- >> %my_archive_log%
120
+
121
+ set path = %my_original_path%
122
+ call %my_WINPYDIRBASE% \scripts\env.bat
123
+
124
+ rem generate pip freeze requirements
125
+ echo %date% %time%
126
+ set LOCKDIR = %WINPYDIRBASE% \notebooks\
127
+ set req = %LOCKDIR% requirement_%WINPYVER% _raw.txt
128
+ set wanted_req = %LOCKDIR% requirement_%WINPYVER% .txt
129
+ set pip_lock_web = %LOCKDIR% pylock_%WINPYVER% .toml
130
+ set pip_lock_local = %LOCKDIR% pylock_%WINPYVER% _local.toml
131
+ set my_archive_lockfile = %my_archive_dir% \pylock_%WINPYVER% _%date:/ =- % at_%my_time% .toml
132
+ set my_archive_lockfile_local = %my_archive_dir% \pylock_%WINPYVER% _%date:/ =- % at_%my_time% _local.tml
133
+ set my_changelog_lockfile = %~dp0 changelogs\pylock_%WINPYVER% .toml
134
+
135
+
136
+ python.exe -m pip freeze> %req%
137
+ findstr /v " winpython" %req% > %wanted_req%
138
+
139
+ rem pip lock from pypi the local, from a frozen req
140
+ python.exe -m pip lock --no-deps -c C:\WinP\constraints.txt -r %wanted_req%
141
+ copy pylock.toml %pip_lock_web%
142
+ python.exe -m pip lock --no-deps --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq -c C:\WinP\constraints.txt -r %wanted_req%
143
+ copy pylock.toml %pip_lock_local%
144
+
145
+ rem compare the two
146
+ findstr /V /R " ^url =$" %pip_lock_web% > %pip_lock_web% .no_url.txt
147
+ findstr /V /R " ^url =$" %pip_lock_local% > %pip_lock_local% .no_url.txt
148
+
149
+ fc %pip_lock_web% .no_url.txt %pip_lock_local% .no_url.txt
150
+
151
+ copy/Y %pip_lock_web% %my_archive_lockfile%
152
+ copy/Y %pip_lock_web% %my_changelog_lockfile%
153
+
117
154
echo -------------------------------------- >> %my_archive_log%
118
155
echo " (%date% %time% ) END OF CREATION" >> %my_archive_log%
119
156
echo -------------------------------------- >> %my_archive_log%
0 commit comments