Skip to content

Commit 9afdf22

Browse files
authored
{Packaging} Remove empty __pycache__ folder in zip package (#30818)
1 parent 3c89363 commit 9afdf22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_scripts/windows/scripts/build.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ for /f %%f in ('dir /b /s *.pyc') do (
205205
)
206206
popd
207207

208-
REM Remove __pycache__
208+
REM Remove empty __pycache__ directories because .pyc files are already moved to parent directories
209209
echo remove pycache
210-
for /d /r %BUILDING_DIR%\Lib\site-packages\pip %%d in (__pycache__) do (
210+
for /d /r %BUILDING_DIR%\Lib\site-packages\ %%d in (__pycache__) do (
211211
if exist %%d rmdir /s /q "%%d"
212212
)
213213

0 commit comments

Comments
 (0)