Skip to content

Commit 5880ce4

Browse files
committed
python: remove the pycs and pycaches
Signed-off-by: Adrian Vladu <avladu@cloudbasesolutions.com>
1 parent fc2b4f0 commit 5880ce4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

BuildAutomation/BuildCloudbaseInitSetup.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ try
123123
ExecRetry { PullInstall "cloudbase-init" $CloudbaseInitRepoUrl $CloudbaseInitRepoBranch }
124124
}
125125

126+
pushd $python_dir
127+
Get-ChildItem -Path .\ -Recurse -Include *__pycache__ | foreach ($_) { Remove-Item $_.FullName -Force -Recurse}
128+
Get-ChildItem -Path .\ -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName -Force -Recurse}
129+
popd
126130
$release_dir = join-path $cloudbaseInitInstallerDir "CloudbaseInitSetup\bin\Release\$platform"
127131
$bin_dir = join-path $cloudbaseInitInstallerDir "CloudbaseInitSetup\Binaries\$platform"
128132

0 commit comments

Comments
 (0)