[gnome-clocks] build: Use python3 found by meson to run build-aux/post-install.py
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] build: Use python3 found by meson to run build-aux/post-install.py
- Date: Tue, 2 Jan 2018 18:46:43 +0000 (UTC)
commit 6541a8705d3869c99d03753d40e011b948c728ff
Author: Ting-Wei Lan <lantw src gnome org>
Date: Sun May 7 21:53:43 2017 +0800
build: Use python3 found by meson to run build-aux/post-install.py
https://bugzilla.gnome.org/show_bug.cgi?id=782298
build-aux/post-install.py | 2 +-
meson.build | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/build-aux/post-install.py b/build-aux/post-install.py
index c1faf09..69d526a 100755
--- a/build-aux/post-install.py
+++ b/build-aux/post-install.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import pathlib
diff --git a/meson.build b/meson.build
index f7c25f5..64e6e37 100644
--- a/meson.build
+++ b/meson.build
@@ -8,6 +8,7 @@ project(
gnome = import('gnome')
i18n = import('i18n')
+python3 = import('python3')
glib = dependency('glib-2.0', version: '>=2.44')
gio = dependency('gio-2.0', version: '>=2.44')
@@ -48,7 +49,8 @@ endif
configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')
-meson.add_install_script(join_paths('build-aux', 'post-install.py'))
+meson.add_install_script(python3.find_python().path(),
+ join_paths(meson.source_root(), 'build-aux', 'post-install.py'))
subdir('data')
subdir('help')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]