From 42ee7afd8c64b06121307d5b8ed3d4d209c71781 Mon Sep 17 00:00:00 2001 From: jmcclare <2138151+jmcclare@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:38:30 -0400 Subject: [PATCH] check for ARM64 boost libraries --- build/python/setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/python/setup.py b/build/python/setup.py index 40fe665f..39bfb8ab 100644 --- a/build/python/setup.py +++ b/build/python/setup.py @@ -105,7 +105,7 @@ def locate_boost(): data_pathname = sysconfig.get_path("data") # just for readthedocs build include_dirs = data_pathname + os.path.sep + 'include' library_dirs = data_pathname + os.path.sep + 'lib' - + if os.path.isdir(include_dirs + os.path.sep + 'boost'): print('Boost library location automatically determined in this conda environment.') return include_dirs, library_dirs @@ -117,6 +117,8 @@ def locate_boost(): if os.path.isdir(include_dirs + os.path.sep + 'boost'): if glob.glob('/usr/local/lib/x86_64-linux-gnu/libboost*'): return include_dirs, '/usr/local/lib/x86_64-linux-gnu' + elif glob.glob('/usr/local/lib/aarch64-linux-gnu/libboost*'): + return include_dirs, '/usr/local/lib/aarch64-linux-gnu' elif glob.glob('/usr/local/lib64/libboost*'): return include_dirs, '/usr/local/lib64' elif glob.glob('/usr/local/lib/libboost*'): @@ -127,6 +129,8 @@ def locate_boost(): if os.path.isdir(include_dirs + os.path.sep + 'boost'): if glob.glob('/usr/lib/x86_64-linux-gnu/libboost*'): return include_dirs, '/usr/lib/x86_64-linux-gnu' + elif glob.glob('/usr/lib/aarch64-linux-gnu/libboost*'): + return include_dirs, '/usr/lib/aarch64-linux-gnu' elif glob.glob('/usr/lib64/libboost*'): return include_dirs, '/usr/lib64' elif glob.glob('/usr/lib/libboost*'):