update build collector script
parent
9c44a5ea0e
commit
27251ce19b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue