This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new aaf70a4  ARROW-3521: [GLib] Run Python using find_program in 
meson.build
aaf70a4 is described below

commit aaf70a41575f5eff590b4f73b8160ae896e6c24e
Author: Yosuke Shiro <[email protected]>
AuthorDate: Tue Oct 16 12:36:31 2018 +0900

    ARROW-3521: [GLib] Run Python using find_program in meson.build
    
    Because it is possible to run “python3” or “python2".
    
    Author: Yosuke Shiro <[email protected]>
    
    Closes #2763 from shiro615/glib-run-python-using-find-program and squashes 
the following commits:
    
    57ab168e <Yosuke Shiro>  Change order of python
    38685fee <Yosuke Shiro>  Run python using find_program in meson.build
---
 c_glib/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/c_glib/meson.build b/c_glib/meson.build
index 066405e..af24a3b 100644
--- a/c_glib/meson.build
+++ b/c_glib/meson.build
@@ -23,7 +23,8 @@ project('arrow-glib', 'c', 'cpp',
           'cpp_std=c++11',
         ])
 
-version = run_command('python', 'tool/get-version.py').stdout().strip()
+python = find_program('python', 'python3', 'python2')
+version = run_command(python, 'tool/get-version.py').stdout().strip()
 if version.endswith('-SNAPSHOT')
   version_numbers = version.split('-')[0].split('.')
   version_tag = version.split('-')[1]

Reply via email to