Update build_collector.py

main
mpgn 2020-09-11 22:56:27 +02:00 committed by GitHub
parent 5256060767
commit fea8276480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -18,10 +18,12 @@ from shiv.cli import __version__ as VERSION
def build_cme():
try:
os.mkdir("build")
os.mkdir("bin")
shutil.copytree("cme", "build/cme")
except:
shutil.rmtree("build")
shutil.copytree("stormcollector", "app/stormcollector")
shutil.rmtree("bin")
shutil.copytree("cme", "build/cme")
subprocess.check_call(
[sys.executable, "-m", "pip", "install", "-r", "requirements.txt" ,"-t", "build"],
@ -78,4 +80,4 @@ if __name__ == "__main__":
except:
pass
finally:
shutil.rmtree("build")
shutil.rmtree("build")