Skip to content

Commit 42ee7af

Browse files
committed
check for ARM64 boost libraries
1 parent 8604f73 commit 42ee7af

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build/python/setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def locate_boost():
105105
data_pathname = sysconfig.get_path("data") # just for readthedocs build
106106
include_dirs = data_pathname + os.path.sep + 'include'
107107
library_dirs = data_pathname + os.path.sep + 'lib'
108-
108+
109109
if os.path.isdir(include_dirs + os.path.sep + 'boost'):
110110
print('Boost library location automatically determined in this conda environment.')
111111
return include_dirs, library_dirs
@@ -117,6 +117,8 @@ def locate_boost():
117117
if os.path.isdir(include_dirs + os.path.sep + 'boost'):
118118
if glob.glob('/usr/local/lib/x86_64-linux-gnu/libboost*'):
119119
return include_dirs, '/usr/local/lib/x86_64-linux-gnu'
120+
elif glob.glob('/usr/local/lib/aarch64-linux-gnu/libboost*'):
121+
return include_dirs, '/usr/local/lib/aarch64-linux-gnu'
120122
elif glob.glob('/usr/local/lib64/libboost*'):
121123
return include_dirs, '/usr/local/lib64'
122124
elif glob.glob('/usr/local/lib/libboost*'):
@@ -127,6 +129,8 @@ def locate_boost():
127129
if os.path.isdir(include_dirs + os.path.sep + 'boost'):
128130
if glob.glob('/usr/lib/x86_64-linux-gnu/libboost*'):
129131
return include_dirs, '/usr/lib/x86_64-linux-gnu'
132+
elif glob.glob('/usr/lib/aarch64-linux-gnu/libboost*'):
133+
return include_dirs, '/usr/lib/aarch64-linux-gnu'
130134
elif glob.glob('/usr/lib64/libboost*'):
131135
return include_dirs, '/usr/lib64'
132136
elif glob.glob('/usr/lib/libboost*'):

0 commit comments

Comments
 (0)