[libhandy/wip/exalm/python] build: Add an override for pygobject



commit 7f7b13ca6c184e720491b105cf08921b98e7efb8
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon May 25 00:58:57 2020 +0500

    build: Add an override for pygobject
    
    Thanks to Zander Brown for explanations.

 src/Handy.py    | 7 +++++++
 src/meson.build | 7 +++++++
 2 files changed, 14 insertions(+)
---
diff --git a/src/Handy.py b/src/Handy.py
new file mode 100644
index 00000000..d7499a96
--- /dev/null
+++ b/src/Handy.py
@@ -0,0 +1,7 @@
+# Copyright (C) 2020 Alexander Mikhaylenko <alexm gnome org>
+#
+# SPDX-License-Identifier: LGPL-2.1+
+
+from gi.repository import GObject, Handy
+
+GObject.type_ensure(Handy.ActionRow)
\ No newline at end of file
diff --git a/src/meson.build b/src/meson.build
index e11d95cb..c2332308 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -254,6 +254,13 @@ if introspection
      )
 
    endif
+
+   python = import('python')
+   python3 = python.find_installation('python3')
+
+   python3.install_sources('Handy.py',
+                   subdir: 'gi/overrides',
+   )
 endif
 
 pkgg = import('pkgconfig')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]