Skip to content

Commit 644acf1

Browse files
authored
Merge pull request winpython#931 from stonebig/master
remove 'log' temporary hack and workaround rmdir issue
2 parents 9a2f2ca + 2840ed6 commit 644acf1

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

generate_a_winpython_distro.bat

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ rem Override other scripts (simpler maintenance)
4141
set my_buildenv=C:\WinPython-64bit-3.6.8.0
4242

4343
rem handle alpha set my_release_level=a0
44-
if "%my_release_level%"=="" set my_release_level=b1
44+
if "%my_release_level%"=="" set my_release_level=b3
4545

4646
rem ---------
4747
rem newAge 20191022
@@ -125,6 +125,13 @@ set build_det=\%my_flavor%
125125
if "%my_flavor%"=="" set build_det=
126126

127127
dir %build_det%
128+
129+
rem 2021-02-13 workaround to hard to remove json files
130+
echo ren bu%my_flavor% bu%my_flavor%_old
131+
ren bu%my_flavor% bu%my_flavor%_old
132+
start rmdir /S /Q bu%my_flavor%_old
133+
134+
128135
echo rmdir /S /Q bu%my_flavor%
129136
rem pause
130137
rmdir /S /Q bu%my_flavor%
@@ -219,16 +226,12 @@ rem F/2020-07-05: install msvc_runtime before packages that may want to compile
219226

220227
rem 2020-12-05 : add a constraints.txt file from a recent pip list
221228

222-
rem 2021-01-09 : temporary log file to trace conflicts on very loong resolver time
223-
rem if issue, search "ERROR:" in --log C:\WinP\log.txt
224-
echo ".">C:\WinP\log.txt
225229

226-
echo pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --log C:\WinP\log.txt --find-links=C:\WinP\packages.srcreq --upgrade %new_resolver%
227-
echo pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --log C:\WinP\log.txt --find-links=C:\WinP\packages.srcreq --upgrade %new_resolver%>>%my_archive_log%
228-
start notepad.exe C:\WinP\log.txt
230+
echo pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq --upgrade %new_resolver%
231+
echo pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq --upgrade %new_resolver%>>%my_archive_log%
229232
echo if pip doesn't work, check the path of %my_WINPYDIRBASE%
230233

231-
pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --log C:\WinP\log.txt --find-links=C:\WinP\packages.srcreq --upgrade %new_resolver%>>%my_archive_log%
234+
pip install -r %my_requirements% -c %my_constraints% --pre --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq --upgrade %new_resolver%>>%my_archive_log%
232235

233236
echo mid of step 2/3
234237

@@ -263,5 +266,7 @@ echo END OF creation>>%my_archive_log%
263266
echo %date% %time% >>%my_archive_log%
264267
echo ===============>>%my_archive_log%
265268

269+
rem show logs
270+
start notepad.exe %my_archive_log%
266271
set path=%my_original_path%
267272
rem pause

run_complement_newbuild.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ rem 2021-01-30: jupyterlab2 final stuff removal
88

99

1010
rem if build error, launch "WinPython Command Prompt.exe" dos ico, then try manual install of requirements.txt
11-
rem that is: pip install --pre --no-index --trusted-host=None --log C:\WinP\log.txt --find-links=C:\WinP\packages.srcreq -c C:\WinP\constraints.txt -r c:\....\requirements.txt
11+
rem that is: pip install --pre --no-index --trusted-host=None --find-links=C:\WinP\packages.srcreq -c C:\WinP\constraints.txt -r c:\....\requirements.txt
1212
rem ( drag & drop "requirements.txt" file in the dos window a the end of the line, to get full path)
13-
rem if issue, search "ERROR:" in --log C:\WinP\log.txt
1413
rem then drag & drop "run_complement_newbuild.bat" file in the dos window and launch it
1514

1615
@echo off

winpython/data/packages.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,3 +2839,12 @@ description = Caching mindful of computation/storage costs
28392839
[pynndescent]
28402840
description = Nearest Neighbor Descent
28412841
2842+
[torchaudio]
2843+
description = An audio package for PyTorch
2844+
2845+
[napari-console]
2846+
description = A plugin that adds a console to napari
2847+
2848+
[docstring-parser]
2849+
description = UNKNOWN
2850+

0 commit comments

Comments
 (0)