From a528eb2b1564845c66a2c5b177ab39c8a345d2e4 Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz@archlinux.org>
Date: Sun, 17 Nov 2019 15:50:34 -0500
Subject: [PATCH] nemo-python: be compatible with python 3.8
See https://bugs.python.org/issue36721
Fixes #336
---
nemo-python/meson.build | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/nemo-python/meson.build b/nemo-python/meson.build
index 93377d15..3f5a8e98 100644
--- a/nemo-python/meson.build
+++ b/nemo-python/meson.build
@@ -7,7 +7,13 @@ gnome = import('gnome')
deps = []
-python3 = dependency('python3')
+# In python 3.8, applications which embed python (i.e. not importable modules)
+# must use python3-embed, instead of python3. Check that first.
+# https://bugs.python.org/issue36721
+python3 = dependency('python3-embed', required: false)
+if not python3.found()
+ python3 = dependency('python3')
+endif
nemo = dependency('libnemo-extension', required: true)
deps += python3