Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-06-11 Thread Brian Dolbec
On Mon, 01 Jun 2015 23:16:47 +0200 Alexander Berntsen berna...@gentoo.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 30/05/15 20:27, Mike Frysinger wrote: to be clear: this is not new code. this is (more or less) a straight port from bash to python. your feedback here

Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-06-03 Thread Mike Frysinger
On 30 May 2015 12:30, Brian Dolbec wrote: On Sat, 30 May 2015 14:27:25 -0400 Mike Frysinger wrote: +def get_python_executable(ver): + Find the right python executable for |ver| + if ver == 'pypy': + prog = 'pypy' + else: + prog

Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-06-01 Thread Alexander Berntsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 30/05/15 20:27, Mike Frysinger wrote: to be clear: this is not new code. this is (more or less) a straight port from bash to python. your feedback here applies to the bash version as well. i'd like to minimize the changes when converting

Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-05-30 Thread Mike Gilbert
On Sat, May 30, 2015 at 1:18 PM, Brian Dolbec dol...@gentoo.org wrote: On Sat, 30 May 2015 12:29:14 -0400 Mike Frysinger vap...@gentoo.org wrote: The bash was getting ugly, and this allows us to add more smarts sanely to the main script. --- DEVELOPING | 2 +- runtests| 156

Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-05-30 Thread Mike Frysinger
On 30 May 2015 14:42, Mike Gilbert wrote: On Sat, May 30, 2015 at 1:18 PM, Brian Dolbec wrote: On Sat, 30 May 2015 12:29:14 -0400 Mike Frysinger wrote: +from __future__ import print_function If I'm not mistaken, this is not needed for 2.7+ anymore. It is still for 2.6 though. You

[gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-05-30 Thread Mike Frysinger
The bash was getting ugly, and this allows us to add more smarts sanely to the main script. --- DEVELOPING | 2 +- runtests| 156 runtests.sh | 109 -- 3 files changed, 157 insertions(+),

Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-05-30 Thread Brian Dolbec
On Sat, 30 May 2015 12:29:14 -0400 Mike Frysinger vap...@gentoo.org wrote: The bash was getting ugly, and this allows us to add more smarts sanely to the main script. --- DEVELOPING | 2 +- runtests| 156 runtests.sh | 109

Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python

2015-05-30 Thread Brian Dolbec
On Sat, 30 May 2015 14:27:25 -0400 Mike Frysinger vap...@gentoo.org wrote: +def get_python_executable(ver): + Find the right python executable for |ver| + if ver == 'pypy': + prog = 'pypy' + else: + prog = 'python' + ver + return os.path.join(EPREFIX, 'usr',