@@ -115,38 +115,47 @@ 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
117
echo -------------------------------------- >> %my_archive_log%
118
- echo " (%date% %time% ) generate lock files" >> %my_archive_log%
118
+ echo " (%date% %time% ) generate pylock.tomle files and requirement_with_hash.txt files" >> %my_archive_log%
119
119
echo -------------------------------------- >> %my_archive_log%
120
120
121
121
set path = %my_original_path%
122
122
call %my_WINPYDIRBASE% \scripts\env.bat
123
123
124
124
rem generate pip freeze requirements
125
125
echo %date% %time%
126
- set LOCKDIR = %WINPYDIRBASE% \notebooks \
126
+ set LOCKDIR = %WINPYDIRBASE% \.. \
127
127
set req = %LOCKDIR% requirement_%WINPYVER% _raw.txt
128
128
set wanted_req = %LOCKDIR% requirement_%WINPYVER% .txt
129
129
set pip_lock_web = %LOCKDIR% pylock_%WINPYVER% .toml
130
130
set pip_lock_local = %LOCKDIR% pylock_%WINPYVER% _local.toml
131
+ set req_lock_web = %LOCKDIR% requirement_with_hash_%WINPYVER% .txt
132
+ set req_lock_local = %LOCKDIR% requirement_with_hash_%WINPYVER% _local.txt
133
+
131
134
set my_archive_lockfile = %my_archive_dir% \pylock_%WINPYVER% _%date:/ =- % at_%my_time% .toml
132
135
set my_archive_lockfile_local = %my_archive_dir% \pylock_%WINPYVER% _%date:/ =- % at_%my_time% _local.tml
133
136
set my_changelog_lockfile = %~dp0 changelogs\pylock_%WINPYVER% .toml
134
137
138
+ rem to get pylock.toml in a ok place...
139
+ cd/D %LOCKDIR%
135
140
136
141
python.exe -m pip freeze> %req%
137
142
findstr /v " winpython" %req% > %wanted_req%
138
143
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%
144
+
145
+ rem pip lock from pypi, from the frozen req
146
+ python.exe -m pip lock --no-deps -c C:\WinP\constraints.txt -r " %wanted_req% "
141
147
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%
148
+
149
+ rem pip lock from local WheelHouse, from the frozen req
150
+ 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
151
copy pylock.toml %pip_lock_local%
144
152
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
153
+ rem generating also classic requirement with hash-256, from obtained pylock.toml
154
+ python.exe -c " from winpython import wheelhouse as wh;wh.pylock_to_req(r' %pip_lock_web% ', r' %req_lock_web% ') "
155
+ python.exe -c " from winpython import wheelhouse as wh;wh.pylock_to_req(r' %pip_lock_local% ', r' %req_lock_local% ') "
148
156
149
- fc %pip_lock_web% .no_url.txt %pip_lock_local% .no_url.txt
157
+ rem compare the two (result from pypi and local Wheelhouse must be equal)
158
+ fc " %pip_lock_web% " " %pip_lock_local% "
150
159
151
160
copy/Y %pip_lock_web% %my_archive_lockfile%
152
161
copy/Y %pip_lock_web% %my_changelog_lockfile%
0 commit comments