[Python-apps-team] Bug#962100: python-memprof: Fix for autopkg tests

Brian Murray brian at ubuntu.com
Thu Jun 11 23:40:10 BST 2020


Package: python-memprof
Version: 0.3.6-2
Followup-For: Bug #962100
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu groovy ubuntu-patch

Dear Maintainer,

I've discovered a fix which allows the autopkg tests to pass.

In Ubuntu, the attached patch was applied to achieve the following:

  * Properly import getsize so autopkg tests pass. (Closes: #962100)


Thanks for considering the patch.
-------------- next part --------------
diff -Nru python-memprof-0.3.6/debian/patches/import-pyx.patch python-memprof-0.3.6/debian/patches/import-pyx.patch
--- python-memprof-0.3.6/debian/patches/import-pyx.patch	1969-12-31 16:00:00.000000000 -0800
+++ python-memprof-0.3.6/debian/patches/import-pyx.patch	2020-06-11 13:08:25.000000000 -0700
@@ -0,0 +1,20 @@
+Description: Properly import getsize for autopkgtests
+Author: Brian Murray <brian at ubuntu.com>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962100
+Last-Update: 2020-06-11
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: python-memprof-0.3.6/memprof/memprof.py
+===================================================================
+--- python-memprof-0.3.6.orig/memprof/memprof.py
++++ python-memprof-0.3.6/memprof/memprof.py
+@@ -21,6 +21,9 @@ import time
+ import argparse
+ import types
+ 
++import pyximport
++pyximport.install()
++
+ from .mp_utils import *  # noqa
+ from .getsize import getSize, isInteresting
+ 
diff -Nru python-memprof-0.3.6/debian/patches/series python-memprof-0.3.6/debian/patches/series
--- python-memprof-0.3.6/debian/patches/series	2020-01-18 15:17:53.000000000 -0800
+++ python-memprof-0.3.6/debian/patches/series	2020-06-11 13:06:46.000000000 -0700
@@ -1 +1,2 @@
 deb_specific__dont_require_argparse.patch
+import-pyx.patch


More information about the Python-apps-team mailing list