Skip to content

Commit

Permalink
updateSetup: make linux boost_python link more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsonntag committed Dec 4, 2015
1 parent e611a3a commit 83e70c2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,10 @@ def pkg_config(*packages, **kw):
boost_lib_dir = os.getenv('BOOST_LIBDIR', '/usr/local/lib')

if os.name != 'nt':
boost_lnk_arg = ['-lboost_python']
boost_lnk_arg = ['-lboost_python-py%s%s' % sys.version_info[0:2]]

if sys.version_info[0] == 3: # python 3
if platform.system().lower() == 'linux':
boost_lnk_arg = ['-lboost_python-py34']

elif platform.system().lower() == 'darwin':
boost_lnk_arg = ['-lboost_python3']
if sys.version_info[0] == 3 and platform.system().lower() == 'darwin': # python 3
boost_lnk_arg = ['-lboost_python3']

else: # windows
boostlib = find('libboost_python*.lib', boost_lib_dir)
Expand Down

0 comments on commit 83e70c2

Please sign in to comment.