-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing finding boost problems... again..
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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') | ||
|
@@ -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" | ||
|
@@ -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]", | ||
|