Skip to content

Commit 09ac673

Browse files
committed
pip lock can do more
1 parent d87e945 commit 09ac673

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

generate_a_winpython_distro.bat

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,27 +135,22 @@ set my_archive_lockfile=%my_archive_dir%\pylock_%WINPYVER%_%date:/=-%at_%my_time
135135
set my_archive_lockfile_local=%my_archive_dir%\pylock_%WINPYVER%_%date:/=-%at_%my_time%_local.tml
136136
set my_changelog_lockfile=%~dp0changelogs\pylock_%WINPYVER%.toml
137137

138-
rem to get pylock.toml in a ok place...
139-
cd/D %LOCKDIR%
140-
141138
python.exe -m pip freeze>%req%
142139
findstr /v "winpython" %req% > %wanted_req%
143140

144141

145142
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%"
147-
copy pylock.toml %pip_lock_web%
143+
python.exe -m pip lock --no-deps -c C:\WinP\constraints.txt -r "%wanted_req%" -o %pip_lock_web%
148144

149145
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%"
151-
copy pylock.toml %pip_lock_local%
146+
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%" -o %pip_lock_local%
152147

153148
rem generating also classic requirement with hash-256, from obtained pylock.toml
154149
python.exe -c "from winpython import wheelhouse as wh;wh.pylock_to_req(r'%pip_lock_web%', r'%req_lock_web%')"
155150
python.exe -c "from winpython import wheelhouse as wh;wh.pylock_to_req(r'%pip_lock_local%', r'%req_lock_local%')"
156151

157152
rem compare the two (result from pypi and local Wheelhouse must be equal)
158-
fc "%pip_lock_web%" "%pip_lock_local%"
153+
fc "%req_lock_web%" "%req_lock_local%"
159154

160155
copy/Y %pip_lock_web% %my_archive_lockfile%
161156
copy/Y %pip_lock_web% %my_changelog_lockfile%

0 commit comments

Comments
 (0)