update build collector script

main
mpgn 2021-03-08 15:14:35 -05:00
parent 9c44a5ea0e
commit 27251ce19b
1 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ from shiv.builder import create_archive
from shiv.cli import __version__ as VERSION
def build_cme():
print("building CME")
try:
shutil.rmtree("build")
shutil.rmtree("bin")
@ -23,6 +24,7 @@ def build_cme():
pass
try:
print("remove useless files")
os.mkdir("build")
os.mkdir("bin")
shutil.copytree("cme", "build/cme")
@ -75,6 +77,7 @@ def build_cme():
)
def build_cmedb():
print("building CMEDB")
env = Environment(
built_at=datetime.utcfromtimestamp(int(time.time())).strftime(
"%Y-%m-%d %H:%M:%S"
@ -97,7 +100,7 @@ def build_cmedb():
if __name__ == "__main__":
try:
build_cme()
# build_cmedb()
build_cmedb()
except:
pass
finally: