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