Commit 0f98e1ff authored by Thibault Saunier's avatar Thibault Saunier

meson: Search python shared lib in lib64/ if it is a directory

parent b5e834df
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment