You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
620 B

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2017 LasLabs Inc.
import os
from doodbalib import CUSTOM_DIR, FILE_APT_BUILD
from doodbalib.installer import INSTALLERS
# Build-time dependencies must be removed when finishing build
if os.path.isfile(FILE_APT_BUILD):
installer = INSTALLERS["apt"](FILE_APT_BUILD)
installer.remove()
installer.cleanup()
# Clean up garbage generated by respective package managers
for name, class_ in INSTALLERS.items():
req_file = os.path.join(CUSTOM_DIR, "dependencies", "%s.txt" % name)
if os.path.isfile(req_file):
class_(req_file).cleanup()