Skip to content

Commit

Permalink
Merge pull request #102 from Feasinde/master
Browse files Browse the repository at this point in the history
`sys.platform()` > `sys.platform.startswith()`, removed `-mt` suffix
  • Loading branch information
martha-thomae authored Jun 14, 2018
2 parents d2a3e4d + 08760d1 commit 4bfd747
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if sys.platform == "darwin":
link_args = ["-F", "/Library/Frameworks","-framework", "mei"]
libraries = ["boost_python-mt"]
libraries = ["boost_python"]
library_dirs = []
runtime_library_dirs = []
include_dirs = []
Expand All @@ -18,18 +18,18 @@
include_dirs = ['/usr/local/include']
link_args = ["-L/usr/local/lib", "-L/usr/lib"]
else:
if sys.platform == "linux2":
if sys.platform.startswith('linux'):
import platform
if platform.linux_distribution()[0] == "Ubuntu":
# Ubuntu names its boost libraries a bit differently.
# figure out what version of python
ver = platform.python_version_tuple()
libraries = ["boost_python-mt-py{0}{1}".format(ver[0], ver[1]), "mei", "boost_python-py{0}{1}".format(ver[0], ver[1])]
libraries = ["boost_python-py{0}{1}".format(ver[0], ver[1]), "mei", "boost_python-py{0}{1}".format(ver[0], ver[1])]
library_dirs = ["/usr/local/lib", "/usr/lib"]
runtime_library_dirs = ["/usr/local/lib", "/usr/lib"]
include_dirs = []
else:
libraries = ["boost_python-mt", "mei"]
libraries = ["boost_python", "mei"]
library_dirs = ["/usr/local/lib", "/usr/lib"]
runtime_library_dirs = ["/usr/local/lib", "/usr/lib"]
include_dirs = []
Expand Down

0 comments on commit 4bfd747

Please sign in to comment.