Skip to content

Commit

Permalink
debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni committed May 27, 2024
1 parent dafb27d commit 450d449
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ def exec_conan(args_param):
# else:
# print("Output: \n{}\n".format(output))

def check_exists(path):
e = os.path.exists(path)
print(f'exists: {path} -> {e}')
l = os.listdir(path)
print(f'list: {path} -> {l}')


def accomodate_capi():
extensions = ['.a', '.so', '.lib', '.dylib', '.dll']

Expand All @@ -106,6 +113,17 @@ def accomodate_capi():

shutil.move(f'./full_deploy/host/c-api/{capi_version}/Release/x86_64/include', './deps/include')

#TODO check if f'./full_deploy/host/c-api/{capi_version}' exists: if not, then print an error message and fini
check_exists(f'./full_deploy/host/c-api')
check_exists(f'./full_deploy/host/c-api/{capi_version}')
check_exists(f'./full_deploy/host/c-api/{capi_version}/Release')
check_exists(f'./full_deploy/host/c-api/{capi_version}/Release/x86_64')
check_exists(f'./full_deploy/host/c-api/{capi_version}/Release/x86_64/include')


#TODO then list the files


def run_conan(reference, march_id, debug_build):
exec_conan(['profile', 'detect'])
exec_conan(['remote', 'add', 'kth', 'https://packages.kth.cash/api', '--force'])
Expand Down

0 comments on commit 450d449

Please sign in to comment.