Skip to content

Commit

Permalink
Merge pull request #239 from jmcclare/develop
Browse files Browse the repository at this point in the history
check for ARM64 boost libraries
  • Loading branch information
joanimato authored Jan 10, 2025
2 parents ebf3a92 + 42ee7af commit 93a4816
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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
Expand All @@ -130,6 +130,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*'):
Expand All @@ -140,6 +142,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*'):
Expand Down

0 comments on commit 93a4816

Please sign in to comment.