diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-09-14 15:18:17 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-09-14 15:18:17 +0200 |
commit | a7eebda2ae1a47281a29d119246b378e50d0405c (patch) | |
tree | a2619bd8288fe7c2f8777d217b4014ee5cadf67d | |
parent | 1b60fedc314a838beea5c7dcbb0278d89e390018 (diff) |
meson: Add a workaround for finding the Python library on Fedora
-rw-r--r-- | pythondetector | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pythondetector b/pythondetector index bc3c31f..1d3149e 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" |