🐛 Fixed build.py

This commit is contained in:
Edgar 2021-08-14 17:26:25 +00:00 committed by GitHub
parent 92a0e0704a
commit fa2a9e8d61

View File

@ -11,9 +11,11 @@ def system(command):
raise Exception("Error while executing:\n\t %s" % command) raise Exception("Error while executing:\n\t %s" % command)
packages = glob("./*/") dirs = glob("./*/")
for p in packages: packages = []
for p in dirs:
path = f'{p}/config.yml' path = f'{p}/config.yml'
if not os.path.isfile(path): if not os.path.isfile(path):
continue continue
@ -22,8 +24,15 @@ for p in packages:
for val in config.values(): for val in config.values():
for v, y in val.items(): for v, y in val.items():
system(f"conan create {p}{y['folder']} {v}@anotherfoxguy/stable -s=build_type=Release -k -b=missing") packages.append(f"{p}{y['folder']} {v}@anotherfoxguy/stable")
system(f"conan create {p}{y['folder']} {v}@anotherfoxguy/stable -s=build_type=Debug -k -b=missing")
for pkg in packages:
system(f"conan export {pkg}")
for pkg in packages:
system(f"conan create {pkg} -s=build_type=Release -k -b=missing")
system(f"conan create {pkg} -s=build_type=Debug -k -b=missing")
data = list(filter(lambda k: 'anotherfoxguy' in k, subprocess.run(['conan','search','*','--raw'], stdout=subprocess.PIPE).stdout.decode("utf-8").split())) data = list(filter(lambda k: 'anotherfoxguy' in k, subprocess.run(['conan','search','*','--raw'], stdout=subprocess.PIPE).stdout.decode("utf-8").split()))