mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
meson: Add a workaround for finding the Python library on Fedora
This commit is contained in:
parent
1b60fedc31
commit
a7eebda2ae
1 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,14 @@ def get_python_libloc():
|
|||
pylib_loc = sysconfig.get_config_var("LIBPL")
|
||||
pylib_ldlibrary = sysconfig.get_config_var("LDLIBRARY")
|
||||
|
||||
py_sharedlib = os.path.join(pylib_loc, pylib_ldlibrary)
|
||||
if os.path.exists(py_sharedlib):
|
||||
return pylib_loc
|
||||
|
||||
# Workaround for Fedora
|
||||
pylib_loc = sysconfig.get_config_var("LIBDIR")
|
||||
pylib_ldlibrary = sysconfig.get_config_var("LDLIBRARY")
|
||||
|
||||
py_sharedlib = os.path.join(pylib_loc, pylib_ldlibrary)
|
||||
if os.path.exists(py_sharedlib):
|
||||
return pylib_loc
|
||||
|
|
Loading…
Reference in a new issue