blob: 92ca6da10923ac68b85db4783a002dab77386c90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import os
import shutil
from . import build_root, other_packages
def run():
"""
Cleans up CI dependencies - used for persistent GitHub Actions
Runners since they don't clean themselves up.
"""
print("Removing ci dependencies")
deps_dir = os.path.join(build_root, 'modularcrypto-deps')
if os.path.exists(deps_dir):
shutil.rmtree(deps_dir, ignore_errors=True)
print("Removing modularcrypto packages")
for other_package in other_packages:
pkg_dir = os.path.join(build_root, other_package)
if os.path.exists(pkg_dir):
shutil.rmtree(pkg_dir, ignore_errors=True)
print()
return True
|