Skip to content

Commit 2614f44

Browse files
committed
DEV: fix hint for library path environment variable.
On Linux it is in fact LIBRARY_PATH that affects the search for shared libraries.
1 parent f703be7 commit 2614f44

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
# determine if we run with Python 3.
3232
PY3 = (sys.version_info[0] == 3)
3333

34-
# Figure out which boost library to use. This doesn't appear to consult
35-
# LD_LIBRARY_PATH.
34+
# Figure out the tagged name of boost_python library.
3635
def get_boost_libraries():
3736
"""Check for installed boost_python shared library.
3837
@@ -52,7 +51,7 @@ def get_boost_libraries():
5251
if not found:
5352
import platform
5453
import warnings
55-
ldevname = 'LD_LIBRARY_PATH'
54+
ldevname = 'LIBRARY_PATH'
5655
if platform.system() == 'Darwin':
5756
ldevname = 'DYLD_FALLBACK_LIBRARY_PATH'
5857
wmsg = ("Cannot detect name suffix for the %r library. "

0 commit comments

Comments
 (0)