Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Merge pull request #121 from DDMAL/boost-python3
Browse files Browse the repository at this point in the history
Fix boost-python version to work for different versions of python3
  • Loading branch information
martha-thomae authored May 11, 2021
2 parents cf541f5 + 023ea4b commit 2aa27be
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@

if sys.platform == "darwin":
link_args = ["-F", "/Library/Frameworks","-framework", "mei"]
if sys.version_info.major == 2:
libraries = ["boost_python27-mt"]
elif sys.version_info.major == 3:
libraries = ["boost_python36-mt"]
else:
libraries = ["boost_python-mt"]
libraries = ["boost_python{major}{minor}-mt".format(major=sys.version_info.major, minor=sys.version_info.minor)]
library_dirs = []
runtime_library_dirs = []
include_dirs = []
Expand Down

0 comments on commit 2aa27be

Please sign in to comment.