This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH] python3 support for /usr/bin/dtrace
- From: David Smith <dsmith at redhat dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>, Nathan Scott <nathans at redhat dot com>
- Cc: systemtap <systemtap at sourceware dot org>
- Date: Mon, 23 Feb 2015 10:26:13 -0600
- Subject: Re: [PATCH] python3 support for /usr/bin/dtrace
- Authentication-results: sourceware.org; auth=none
- References: <452908795 dot 11130378 dot 1424394762756 dot JavaMail dot zimbra at redhat dot com> <1605218776 dot 11202792 dot 1424408969495 dot JavaMail dot zimbra at redhat dot com> <y0mbnknhuq1 dot fsf at fche dot csb>
On 02/21/2015 02:31 PM, Frank Ch. Eigler wrote:
>
> Hi -
>
>> Came across a few syntax issues when building PCP with static
>> probes enabled on a system where python3 was default. [...]
>
> By default, meaning /usr/bin/python mapping to python3? Or do you
> mean just that /usr/bin/python may be missing, so we should consider
> hash-banging /usr/bin/python3 instead?
>
>
>> [...] The downside to this change is that python versions before
>> 2.6 may no longer work, but that seems to be a fairly common minimum
>> python version these days.
>
> RHEL5 ships with python 2.4.*. Is there a solution that lets that
> work too?
I tested this patch and found it didn't work on python 2.4. I took out
the failing part (the new exception handling) and checked in the rest as
commit d576100.
I think I may have an idea of how to fix the exception handling to
handle python 2.4+.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)