Update build_collector.py
parent
5256060767
commit
fea8276480
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue