This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] python3 support for /usr/bin/dtrace


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]