@@ -1,45 +0,0 @@
1−diff --git a/bindings/python/meson.build b/bindings/python/meson.build
2−index 4358b79..61fd5a5 100644
3−--- a/bindings/python/meson.build
4−+++ b/bindings/python/meson.build
5−@@ -1,3 +1,5 @@
6−+pygobject_override_dir = get_option('pygobject_override_dir')
7−+
8− get_overridedir = '''
9− import os
10− import sysconfig
11−@@ -21,7 +23,7 @@ print(overridedir)
12− '''
13−
14− # Python 3
15−-if (get_option('with_py3_overrides'))
16−+if (get_option('with_py3_overrides')) and pygobject_override_dir == ''
17− ret = run_command([python3, '-c', get_overridedir])
18−
19− if ret.returncode() != 0
20−@@ -34,7 +36,7 @@ if (get_option('with_py3_overrides'))
21− endif
22−
23− # Python 2
24−-if (get_option('with_py2_overrides'))
25−+if (get_option('with_py2_overrides')) and pygobject_override_dir == ''
26− ret2 = run_command([python2, '-c', get_overridedir])
27−
28− if ret2.returncode() != 0
29−@@ -45,3 +47,7 @@ if (get_option('with_py2_overrides'))
30−
31− install_data('gi/overrides/Modulemd.py', install_dir: pygobject2_override_dir)
32− endif
33−+
34−+if pygobject_override_dir != ''
35−+ install_data('gi/overrides/Modulemd.py', install_dir: pygobject_override_dir)
36−+endif
37−diff --git a/meson_options.txt b/meson_options.txt
38−index 147419f..9071a04 100644
39−--- a/meson_options.txt
40−+++ b/meson_options.txt
41−@@ -18,3 +18,4 @@ option('skip_introspection', type : 'boolean', value : false)
42− option('python_name', type : 'string')
43− option('with_py2_overrides', type : 'boolean', value : false)
44− option('with_py3_overrides', type : 'boolean', value : true)
45−+option('pygobject_override_dir', type : 'string', value : '', description: 'Path to pygobject overrides directory')