summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2016-09-13 15:17:41 -0300
committerThibault Saunier <thibault.saunier@osg.samsung.com>2016-09-13 15:17:41 -0300
commit0f98e1ff4405d5a91c5a3372ac9fc60dd7aa0d3f (patch)
tree1f499d700a4897bdb89f064da824247f6d74b696
parentb5e834df90739bb1de24f7d28e7bad81f2831457 (diff)
meson: Search python shared lib in lib64/ if it is a directory
-rw-r--r--pythondetector3
1 files changed, 2 insertions, 1 deletions
diff --git a/pythondetector b/pythondetector
index ec88865..37aa80f 100644
--- a/pythondetector
+++ b/pythondetector
@@ -42,7 +42,8 @@ def get_python_libloc():
if os.path.exists(os.path.join(py_sharedlib)):
return pylib_loc
- pylib_loc = '/usr/lib'
+ libdir = 'lib64' if os.path.isdir('/usr/lib64') else 'lib'
+ pylib_loc = '/usr/' + libdir
py_sharedlib = pylib_loc + '/libpython' + pyversion + abiflags + '.so'
if os.path.exists(os.path.join(py_sharedlib)):
return pylib_loc