Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for ARM64 boost libraries #239

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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*'):
Expand All @@ -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*'):
Expand Down