Skip to content

Commit

Permalink
fixing finding boost problems... again..
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Jun 8, 2020
1 parent d5d1068 commit acdb8d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class BuildExt(build_ext):
def initialize_options(self):
build_ext.initialize_options(self)
pyversion = sys.version[0:3][0] + sys.version[0:3][2] #returns something like 32
libsearch = ['/usr/lib', '/usr/lib64', '/usr/lib/' + platform.machine() + '-' + platform.system().lower() + '-gnu', '/usr/local/lib', '/usr/local/lib64']
libsearch = ['/usr/lib', '/usr/lib64', '/usr/lib/' + platform.machine() + '-' + platform.system().lower() + '-gnu', '/usr/lib/x86_64-linux-gnu/', '/usr/local/lib', '/usr/local/lib64']
includesearch = ['/usr/include', '/usr/local/include']
if 'VIRTUAL_ENV' in os.environ and os.path.exists(os.environ['VIRTUAL_ENV'] + '/lib'):
libsearch.insert(0, os.environ['VIRTUAL_ENV'] + '/lib')
Expand Down Expand Up @@ -104,6 +104,10 @@ def findboost(self, libsearch, includesearch, pyversion):
self.boost_library_dir = d
self.boostlib = "boost_python-py" + pyversion
break
elif os.path.exists(d + "/libboost_python"+pyversion+".so"):
self.boost_library_dir = d
self.boostlib = "boost_python" + pyversion
break
elif os.path.exists(d + "/libboost_python3.so"):
self.boost_library_dir = d
self.boostlib = "boost_python3"
Expand Down Expand Up @@ -192,7 +196,7 @@ def build_extensions(self):

setup(
name="python3-timbl",
version="2020.05.19",
version="2020.06.08",
description="Python 3 language binding for the Tilburg Memory-Based Learner",
author="Sander Canisius, Maarten van Gompel",
author_email="[email protected], [email protected]",
Expand Down

0 comments on commit acdb8d5

Please sign in to comment.