Skip to content

Commit

Permalink
generically add boost libraries; impport boost version
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuen committed May 31, 2020
1 parent 156c233 commit dc3f150
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ic3_data_ext/ext_boost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "dataclasses/I3Map.h"
#include "dataclasses/I3TimeWindow.h"
#include "phys-services/I3Calculator.h"
#include <boost/version.hpp>
#include <boost/python.hpp>
#include "numpy/ndarrayobject.h"

Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def get_boost_libraries():
import sys
if sys.version_info.major >= 3:
# python 3 libraries
libraries = ['boost_python36', 'boost_numpy36', 'phys-services']
suffix = '{}{}'.format(sys.version_info.major, sys.version_info.minor)
libraries = [
'boost_python'+suffix, 'boost_numpy'+suffix, 'phys-services',
]
else:
# python 2 libraries
libraries = ['boost_python', 'phys-services']
Expand Down

0 comments on commit dc3f150

Please sign in to comment.