summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-09-14 15:18:17 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-09-14 15:18:17 +0200
commita7eebda2ae1a47281a29d119246b378e50d0405c (patch)
treea2619bd8288fe7c2f8777d217b4014ee5cadf67d
parent1b60fedc314a838beea5c7dcbb0278d89e390018 (diff)
downloadgstreamer-a7eebda2ae1a47281a29d119246b378e50d0405c.tar.gz
meson: Add a workaround for finding the Python library on Fedora
-rw-r--r--pythondetector8
1 files changed, 8 insertions, 0 deletions
diff --git a/pythondetector b/pythondetector
index bc3c31fec7..1d3149e11d 100644
--- a/pythondetector
+++ b/pythondetector
@@ -24,6 +24,14 @@ def get_python_libloc():
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
+
return "None"