--- python-profiler-2.orig/2.4/profile.py +++ python-profiler-2/2.4/profile.py @@ -360,7 +360,7 @@ "exception": trace_dispatch_exception, "return": trace_dispatch_return, "c_call": trace_dispatch_c_call, - "c_exception": trace_dispatch_exception, + "c_exception": trace_dispatch_return, # the C function returned "c_return": trace_dispatch_return, } --- python-profiler-2.orig/debian/compat +++ python-profiler-2/debian/compat @@ -0,0 +1 @@ +4 --- python-profiler-2.orig/debian/README.Debian +++ python-profiler-2/debian/README.Debian @@ -0,0 +1,9 @@ +python-profiler for Debian +-------------------------- + +Debian note: The license for the "profile" and the "pstats" +modules doesn't conform to the Debian Free Software Guidelines (DFSG). +These modules can be found in the python2.x-profiler package in +the non-free/python section of the Debian archives. + + -- Matthias Klose , Wed, 9 Feb 2005 00:41:09 +0100 --- python-profiler-2.orig/debian/copyright +++ python-profiler-2/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Matthias Klose +on Wed, 9 Feb 2005 00:41:09 +0100. + +The modules profile.py and pstats.py were taken from the upstream CVS +or downloaded from ftp://ftp.python.org/pub/python and separated out +of the upstream tarballs. + +Copyright: 1994, by InfoSeek Corporation + +Upstream Author: James Roskind + +License: + + Copyright 1994, by InfoSeek Corporation, all rights reserved. + Written by James Roskind + + Permission to use, copy, modify, and distribute this Python software + and its associated documentation for any purpose (subject to the + restriction in the following sentence) without fee is hereby granted, + provided that the above copyright notice appears in all copies, and + that both that copyright notice and this permission notice appear in + supporting documentation, and that the name of InfoSeek not be used in + advertising or publicity pertaining to distribution of the software + without specific, written prior permission. This permission is + explicitly restricted to the copying and modification of the software + to remain in Python, compiled Python, or other languages (such as C) + wherein the modified or derived code is exclusively imported into a + Python module. + + INFOSEEK CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS + SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS. IN NO EVENT SHALL INFOSEEK CORPORATION BE LIABLE FOR ANY + SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --- python-profiler-2.orig/debian/control +++ python-profiler-2/debian/control @@ -0,0 +1,41 @@ +Source: python-profiler +Section: non-free/python +Priority: optional +Maintainer: Matthias Klose +Build-Depends-Indep: debhelper (>= 4.2.18), python +Standards-Version: 3.6.1 + +Package: python-profiler +Architecture: all +Depends: ${python:Depends} +Suggests: python-doc +Description: deterministic profiling of any Python programs + A profiler is a program that describes the run time performance of a + program, providing a variety of statistics. This profiler provides + deterministic profiling of any Python programs. It also provides a + series of report generation tools to allow users to rapidly examine + the results of a profile operation. + +Package: python2.4-profiler +Architecture: all +Depends: python2.4 (>= 2.4dfsg-1) +Suggests: python2.4-doc +Replaces: python2.4 (<< 2.4dfsg-1) +Description: deterministic profiling of any Python programs + A profiler is a program that describes the run time performance of a + program, providing a variety of statistics. This profiler provides + deterministic profiling of any Python programs. It also provides a + series of report generation tools to allow users to rapidly examine + the results of a profile operation. + +Package: python2.3-profiler +Architecture: all +Depends: python2.3 (>= 2.3.5) +Suggests: python2.3-doc +Replaces: python2.3 (<< 2.3.5) +Description: deterministic profiling of any Python programs + A profiler is a program that describes the run time performance of a + program, providing a variety of statistics. This profiler provides + deterministic profiling of any Python programs. It also provides a + series of report generation tools to allow users to rapidly examine + the results of a profile operation. --- python-profiler-2.orig/debian/changelog +++ python-profiler-2/debian/changelog @@ -0,0 +1,56 @@ +python-profiler (2-5ubuntu3) dapper; urgency=low + + * Update to python2.4.3. + + -- Matthias Klose Thu, 30 Mar 2006 10:10:53 +0000 + +python-profiler (2-5ubuntu2) dapper; urgency=low + + * Fix release part of the version number for the binary packages. + + -- Matthias Klose Wed, 22 Mar 2006 09:25:11 +0000 + +python-profiler (2-5ubuntu1) dapper; urgency=low + + * Resynchronize with Debian + + Dropped python 2.1 / 2.2 versions + + Merged rules file to match Matthias Kloses improvements + + -- Stephan Hermann Sun, 15 Jan 2006 07:18:40 +0100 + +python-profiler (2-5) unstable; urgency=low + + * Bump version number of 2.4 package to 2.4.2. + + -- Matthias Klose Thu, 29 Sep 2005 01:57:37 +0200 + +python-profiler (2-4ubuntu1) breezy; urgency=low + + * Bump version number of 2.4 package to 2.4.1. + + -- Matthias Klose Thu, 5 May 2005 13:17:48 +0200 + +python-profiler (2-3ubuntu1) hoary; urgency=low + + * Fix build dependencies. + + -- Matthias Klose Fri, 11 Feb 2005 00:20:32 +0100 + +python-profiler (2-2ubuntu1) hoary; urgency=low + + * Build for python2.4, drop python2.2, python2.1 packages. + + -- Matthias Klose Wed, 9 Feb 2005 12:08:43 +0000 + +python-profiler (2-2) unstable; urgency=low + + * Build with complete tarball. + + -- Matthias Klose Wed, 9 Feb 2005 12:58:26 +0100 + +python-profiler (1-1) unstable; urgency=low + + * Initial Release, separated out from the upstream tarballs. + + -- Matthias Klose Wed, 9 Feb 2005 00:41:09 +0100 + --- python-profiler-2.orig/debian/rules +++ python-profiler-2/debian/rules @@ -0,0 +1,78 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +v = $(shell python -c 'import sys; print sys.version[:3]') +vers = 2.3 2.4 + +v23 = 2.3.5 +v24 = 2.4.3 + +debrel := $(shell dpkg-parsechangelog | sed -n 's/^Version:.*-//p') +debrel24_d := $(shell echo $(debrel) | sed 's/ubuntu.*//') +debrel24_u := $(shell echo $(debrel) | sed 's/^[0-9]*//') +debrel24 := $(shell echo $$(($(debrel24_d) - 4)) )$(debrel24_u) + +ifeq ($(v),2.3) + vdef = $(v23) + debreldef = $(debrel) +else + vdef = $(v24) + debreldef = $(debrel24) +endif + +build: + +clean: + dh_testdir + dh_testroot + -find -name '*.py[co]' | xargs rm -f + dh_clean + +install: install-indep +install-indep: + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i + for v in $(vers); do \ + mkdir -p debian/python$$v-profiler/usr/lib/python$$v; \ + cp -p $$v/* debian/python$$v-profiler/usr/lib/python$$v/; \ + for i in `find debian/python$$v-profiler -type f`; do \ + sed "1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python$$v\1," \ + $$i > $$i.temp; \ + if cmp --quiet $$i $$i.temp; then \ + rm -f $$i.temp; \ + else \ + mv -f $$i.temp $$i; \ + chmod 755 $$i; \ + echo "fixed interpreter: $$i"; \ + fi; \ + done; \ + done + +binary-indep: install-indep + dh_testdir + dh_testroot + dh_installchangelogs -i + dh_installdocs -i + rm -rf debian/python-profiler/usr/share/doc/python-profiler + ln -sf python$(v)-profiler \ + debian/python-profiler/usr/share/doc/python-profiler + dh_compress -i + dh_fixperms -i + dh_python -i + dh_installdeb -i + dh_gencontrol -ppython-profiler -- -v$(vdef)-$(debreldef) + dh_gencontrol -ppython2.3-profiler -- -v$(v23)-$(debrel) + dh_gencontrol -ppython2.4-profiler -- -v$(v24)-$(debrel24) + dh_md5sums -i + dh_builddeb -i + +# Build architecture dependant packages using the common target. +binary-arch: + +binary: binary-arch binary-indep +.PHONY: clean binary-indep binary install install-indep