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