@@ -115,38 +115,47 @@ call %my_buildenv%\scripts\env.bat
115115python.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%
116116
117117echo -------------------------------------- >> %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%
119119echo -------------------------------------- >> %my_archive_log%
120120
121121set path = %my_original_path%
122122call %my_WINPYDIRBASE% \scripts\env.bat
123123
124124rem generate pip freeze requirements
125125echo %date% %time%
126- set LOCKDIR = %WINPYDIRBASE% \notebooks \
126+ set LOCKDIR = %WINPYDIRBASE% \.. \
127127set req = %LOCKDIR% requirement_%WINPYVER% _raw.txt
128128set wanted_req = %LOCKDIR% requirement_%WINPYVER% .txt
129129set pip_lock_web = %LOCKDIR% pylock_%WINPYVER% .toml
130130set 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+
131134set my_archive_lockfile = %my_archive_dir% \pylock_%WINPYVER% _%date:/ =- % at_%my_time% .toml
132135set my_archive_lockfile_local = %my_archive_dir% \pylock_%WINPYVER% _%date:/ =- % at_%my_time% _local.tml
133136set my_changelog_lockfile = %~dp0 changelogs\pylock_%WINPYVER% .toml
134137
138+ rem to get pylock.toml in a ok place...
139+ cd/D %LOCKDIR%
135140
136141python.exe -m pip freeze> %req%
137142findstr /v " winpython" %req% > %wanted_req%
138143
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% "
141147copy 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% "
143151copy pylock.toml %pip_lock_local%
144152
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% ') "
148156
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% "
150159
151160copy/Y %pip_lock_web% %my_archive_lockfile%
152161copy/Y %pip_lock_web% %my_changelog_lockfile%
0 commit comments