[Python-modules-commits] [cysignals] 03/04: Debian patch 1.3.1+ds-1: refreshment

Jerome Benoit calculus-guest at moszumanska.debian.org
Fri Nov 4 05:10:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

calculus-guest pushed a commit to branch master
in repository cysignals.

commit d9f18dee077822afa8c567c3a15f650f3a5609a6
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Fri Nov 4 05:04:55 2016 +0000

    Debian patch 1.3.1+ds-1: refreshment
---
 debian/adhoc/tests/check-doctest                   |  2 +-
 debian/adhoc/tests/check-example                   |  3 +-
 debian/changelog                                   |  9 +++-
 debian/control                                     |  4 +-
 debian/patches/debianization.patch                 | 38 +++++++++++-----
 .../upstream-autotoolization-harden-pari_gp.patch  | 50 ++++++++++----------
 ...tion_pytoolization-harden-build_directory.patch | 53 ++++++++++------------
 ...eam-source-tools-gdb-handling_enhancement.patch | 14 +++---
 debian/rules                                       | 34 +++++++-------
 debian/tests/control                               |  2 +-
 10 files changed, 114 insertions(+), 95 deletions(-)

diff --git a/debian/adhoc/tests/check-doctest b/debian/adhoc/tests/check-doctest
index fe4e4d0..ff1ae05 100755
--- a/debian/adhoc/tests/check-doctest
+++ b/debian/adhoc/tests/check-doctest
@@ -9,6 +9,6 @@ export PYTHONPATH=$(realpath -m ${PYBUILD_build_dir})
 SCRIPTPATH=$(realpath ./src/scripts)
 [ -d ${SCRIPTPATH} ] || exit 2
 export PATH=${SCRIPTPATH}:/usr/bin:/bin
-exec $PYTHON -m doctest src/cysignals/*.pyx
+exec $PYTHON -B rundoctests.py src/cysignals/*.pyx
 exit 1
 #eos
diff --git a/debian/adhoc/tests/check-example b/debian/adhoc/tests/check-example
index 40416aa..f462147 100755
--- a/debian/adhoc/tests/check-example
+++ b/debian/adhoc/tests/check-example
@@ -1,5 +1,6 @@
 #!/bin/sh
 set -e
+ABS_TOP_SRCDIR=$(realpath .)
 FLAVOUR=${1:-bare}
 [ -f build/dh-test-auto_build-${FLAVOUR}.sh ] || exit 6
 . build/dh-test-auto_build-${FLAVOUR}.sh
@@ -7,7 +8,7 @@ PYTHON=${PYBUILD_interpreter}
 export PYTHONPATH=$(realpath -m ${PYBUILD_build_dir})
 [ -d ${PYTHONPATH} ] || exit 5
 export PATH=${SCRIPTPATH}:/usr/bin:/bin
-export CPPFLAGS=-I${PYTHONPATH}/cysignals
+export CPPFLAGS="-I${PYTHONPATH}/cysignals -I${ABS_TOP_SRCDIR}/build/${FLAVOUR}/src/cysignals"
 CHECKDIR=build/${FLAVOUR}/${0##*/}
 [ ! -d ${CHECKDIR} ] || exit 4
 cp -pr example ${CHECKDIR} || exit 3
diff --git a/debian/changelog b/debian/changelog
index dfe5a0f..1b6b5b9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,15 @@
 cysignals (1.3.1+ds-1) unstable; urgency=medium
 
   * New upstream release.
+  * Debianization:
+    - debian/control:
+      - Build-Depends field, adjust libpari-dev version;
+      - Depends field for pari flavour, remove libpari-dev;
+    - debian/rules, harden;
+    - debian/patches/*, harden and refresh;
+    - debian/tests/*, refresh.
 
- -- Jerome Benoit <calculus at rezozer.net>  Wed, 02 Nov 2016 15:07:34 +0000
+ -- Jerome Benoit <calculus at rezozer.net>  Fri, 04 Nov 2016 04:55:09 +0000
 
 cysignals (1.2.0+ds-2) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 0693256..a22d51e 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Build-Depends:
  python-all,
  python-sphinx,
  libpython-dev,
- libpari-dev (>> 2.8),
+ libpari-dev (>= 2.9),
  cython (>= 0.24),
  gdb
 Build-Depends-Indep:
@@ -33,7 +33,7 @@ Provides: python-cysignals
 Conflicts: python-cysignals-bare
 Architecture: any
 Multi-Arch: same
-Depends: libpari-dev (>> 2.8), ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Recommends: cysignals-tools
 Suggests: python-cysignals-doc (= ${source:Version})
 Description: interrupt and signal handling for Cython -- Python - PARI/GP
diff --git a/debian/patches/debianization.patch b/debian/patches/debianization.patch
index c7e0107..9eda988 100644
--- a/debian/patches/debianization.patch
+++ b/debian/patches/debianization.patch
@@ -4,18 +4,8 @@ Description: debianization
 Origin: vendor, Debian
 Forwarded: not-needed
 Author: Jerome Benoit <calculus at rezozer.net>
-Last-Update: 2015-09-14
+Last-Update: 2016-11-04
 
---- a/setup.py
-+++ b/setup.py
-@@ -64,6 +64,7 @@
- # The variable "init_pxd" is the string which should be written to
- # __init__.pxd
- init_pxd = "# distutils: include_dirs = {0}\n".format(install_dir)
-+init_pxd = init_pxd.replace("/usr/local/","/usr/")
- # Append config.pxd
- with open(config_pxd_file) as c:
-     init_pxd += c.read()
 --- a/src/scripts/cysignals-CSI
 +++ b/src/scripts/cysignals-CSI
 @@ -97,6 +97,7 @@
@@ -26,3 +16,29 @@ Last-Update: 2015-09-14
                               sysconfig.get_config_var('INSTSONAME'))
      env = dict(os.environ)
      if sys.platform == 'macosx':
+--- a/setup.py
++++ b/setup.py
+@@ -24,6 +24,8 @@
+ 	ac_configure_flags = "--with-pari"
+ 	sys.argv.remove("--with-pari")
+ 
++env_PYBUILD_DESTDIR = os.environ.get("PYBUILD_DESTDIR")
++
+ cythonize_dir = "build/XXXX"
+ if "--without-pari" in ac_configure_flags:
+ 	cythonize_dir = "build/bare"
+@@ -132,8 +134,12 @@
+         # The variable "init_pxd" is the string which should be written to
+         # __init__.pxd
+         init_pxd = "# distutils: include_dirs = {0}\n".format(install_dir)
+-        # Append __init__.pxd from configure
+-        init_pxd += self.get_init_pxd()
++
++        if env_PYBUILD_DESTDIR is None:
++            # Append __init__.pxd from configure
++            init_pxd += self.get_init_pxd()
++        else:
++            init_pxd = init_pxd.replace(env_PYBUILD_DESTDIR,"")
+ 
+         init_pxd_file = opj(self.build_lib, "cysignals", "__init__.pxd")
+         write_if_changed(init_pxd_file, init_pxd)
diff --git a/debian/patches/upstream-autotoolization-harden-pari_gp.patch b/debian/patches/upstream-autotoolization-harden-pari_gp.patch
index a0ea8ad..e70a973 100644
--- a/debian/patches/upstream-autotoolization-harden-pari_gp.patch
+++ b/debian/patches/upstream-autotoolization-harden-pari_gp.patch
@@ -8,12 +8,12 @@ Description: autotoolization: harden: PARI/GP
 Origin: vendor, Debian
 Forwarded: https://github.com/sagemath/cysignals/pull/38
 Author: Jerome Benoit <calculus at rezozer.net>
-Last-Update: 2016-10-10
+Last-Update: 2016-11-02
 
 --- /dev/null
 +++ b/m4/pari.m4
-@@ -0,0 +1,263 @@
-+# pari.m4 serial 1
+@@ -0,0 +1,262 @@
++# pari.m4 serial 2
 +dnl m4/pari.m4 -- M4 macro processor include script
 +dnl
 +dnl Copyright (C) 2016 Jerome Benoit <jgmbenoit at rezozer.net>
@@ -82,8 +82,7 @@ Last-Update: 2016-10-10
 +		PARI_CFLAGS=""
 +		PARI_LIBS="-lpari"
 +
-+dnl WIP_COMMENTED_OUT		min_pari_version=ifelse([$1], ,2.8.0,$1)
-+		min_pari_version=ifelse([$1], ,2.7.6,$1)
++		min_pari_version=ifelse([$1], ,2.9.0,$1)
 +		min_pari_version_0_0_0="$min_pari_version.0.0.0"
 +
 +		min_pari_version_major=`echo $min_pari_version_0_0_0 | \
@@ -290,34 +289,33 @@ Last-Update: 2016-10-10
 -AC_CHECK_DECL([PARI_SIGINT_block],
 -    [AC_DEFINE(HAVE_PARI, 1, [Define to 1 if PARI is fully supported.])],
 -    [], [[#include <pari/pari.h>]])
-+AM_PATH_PARI([2.8],
++AM_PATH_PARI([2.9],
 +	[AC_DEFINE(HAVE_PARI, 1, [Define to 1 if PARI is fully supported.])],
 +	[AC_MSG_WARN([no suitable PARI library found])])
  
  AC_MSG_CHECKING([for emms instruction])
  # We add the "leal" instruction to reduce false positives in case some
-@@ -43,9 +41,15 @@
- AC_CONFIG_COMMANDS([build/src/config.pxd],
-     # Generate a file config.pxd whose contents will be copied to
-     # __init__.pxd to set correct compiler options.
--    # The -Ddummy works around https://github.com/cython/cython/pull/485
--    [[echo "# distutils: extra_link_args = $LIBS -Ddummy" >build/src/config.pxd]],
+@@ -42,9 +40,14 @@
+ 
+ AC_CONFIG_COMMANDS([build/src/cysignals/__init__.pxd],
+     # Generate a file __init__.pxd to set correct compiler options.
+-    [[echo "# distutils: extra_link_args = $LIBS" >build/src/cysignals/__init__.pxd]],
 -    [LIBS=$LIBS])
-+    # The -DCYSIGNALS_DUMMY works around https://github.com/cython/cython/pull/485
+-
 +    [[
-+			echo "# distutils: extra_compile_args = $EXTRACOMPILEARGS" >build/src/config.pxd
-+			echo "# distutils: extra_link_args = -DCYSIGNALS_DUMMY $EXTRALINKARGS" >>build/src/config.pxd
++			echo "# distutils: extra_compile_args = $EXTRACOMPILEARGS" > build/src/cysignals/__init__.pxd
++			echo "# distutils: extra_link_args = $EXTRALINKARGS" >> build/src/cysignals/__init__.pxd
 +		]],
 +    [
 +			EXTRACOMPILEARGS="$PARI_CPPFLAGS $PARI_CFLAGS"
 +			EXTRALINKARGS="$PARI_LDFLAGS $PARI_LIBS"
 +		])
  
- 
  AC_OUTPUT()
+ 
 --- a/setup.py
 +++ b/setup.py
-@@ -11,11 +11,22 @@
+@@ -12,11 +12,22 @@
  import os
  from glob import glob
  
@@ -340,12 +338,12 @@ Last-Update: 2016-10-10
  kwds = dict(include_dirs=[opj("src", "cysignals"),
                            opj(cythonize_dir, "src"),
                            opj(cythonize_dir, "src", "cysignals")],
-@@ -34,7 +45,7 @@
- if not os.path.isfile(config_pxd_file):
-     import subprocess
-     subprocess.check_call(["make", "configure"])
--    subprocess.check_call(["sh", "configure"])
-+    subprocess.check_call(["sh", "configure" + ac_configure_flags ])
- 
- 
- # Determine installation directory from distutils
+@@ -136,7 +147,7 @@
+         except IOError:
+             import subprocess
+             subprocess.check_call(["make", "configure"])
+-            subprocess.check_call(["sh", "configure"])
++            subprocess.check_call(["sh", "configure" + ac_configure_flags ])
+             f = open(configure_init_pxd_file, "r")
+         with f:
+             return f.read()
diff --git a/debian/patches/upstream-autotoolization_pytoolization-harden-build_directory.patch b/debian/patches/upstream-autotoolization_pytoolization-harden-build_directory.patch
index 89ed79b..de28a7f 100644
--- a/debian/patches/upstream-autotoolization_pytoolization-harden-build_directory.patch
+++ b/debian/patches/upstream-autotoolization_pytoolization-harden-build_directory.patch
@@ -8,11 +8,11 @@ Description: autotoolization/pytoolization: harden: build directory
 Origin: vendor, Debian
 Forwarded: https://github.com/sagemath/cysignals/pull/38
 Author: Jerome Benoit <calculus at rezozer.net>
-Last-Update: 2016-10-10
+Last-Update: 2016-11-02
 
 --- a/setup.py
 +++ b/setup.py
-@@ -15,10 +15,7 @@
+@@ -16,10 +16,7 @@
  
  opj = os.path.join
  
@@ -24,7 +24,7 @@ Last-Update: 2016-10-10
  if "--without-pari" in sys.argv:
  	ac_configure_flags = "--without-pari"
  	sys.argv.remove("--without-pari")
-@@ -26,6 +23,11 @@
+@@ -27,6 +24,11 @@
  	ac_configure_flags = "--with-pari"
  	sys.argv.remove("--with-pari")
  
@@ -36,21 +36,20 @@ Last-Update: 2016-10-10
  
  kwds = dict(include_dirs=[opj("src", "cysignals"),
                            opj(cythonize_dir, "src"),
-@@ -44,8 +46,12 @@
- config_pxd_file = opj(cythonize_dir, "src", "config.pxd")
- if not os.path.isfile(config_pxd_file):
-     import subprocess
--    subprocess.check_call(["make", "configure"])
--    subprocess.check_call(["sh", "configure" + ac_configure_flags ])
-+    subprocess.check_call(
-+				"make configure && mkdir -p " + cythonize_dir +
-+				" && " +
-+				"{ cd " + cythonize_dir + " ; ../../configure " + ac_configure_flags + " ; }" ,
-+			shell=True)
-+
- 
- 
- # Determine installation directory from distutils
+@@ -146,8 +148,11 @@
+             f = open(configure_init_pxd_file, "r")
+         except IOError:
+             import subprocess
+-            subprocess.check_call(["make", "configure"])
+-            subprocess.check_call(["sh", "configure" + ac_configure_flags ])
++            subprocess.check_call(
++                "make configure && mkdir -p " + cythonize_dir +
++                " && " +
++                "{ cd " + cythonize_dir + " ; ../../configure " + ac_configure_flags + " ; }" ,
++              shell=True)
+             f = open(configure_init_pxd_file, "r")
+         with f:
+             return f.read()
 --- a/configure.ac
 +++ b/configure.ac
 @@ -7,7 +7,7 @@
@@ -62,20 +61,18 @@ Last-Update: 2016-10-10
  
  AC_ARG_ENABLE(debug,
          AS_HELP_STRING([--enable-debug], [enable debug output]))
-@@ -38,13 +38,13 @@
+@@ -38,11 +38,11 @@
  )
  
  
--AC_CONFIG_COMMANDS([build/src/config.pxd],
-+AC_CONFIG_COMMANDS([src/config.pxd],
-     # Generate a file config.pxd whose contents will be copied to
-     # __init__.pxd to set correct compiler options.
-     # The -DCYSIGNALS_DUMMY works around https://github.com/cython/cython/pull/485
+-AC_CONFIG_COMMANDS([build/src/cysignals/__init__.pxd],
++AC_CONFIG_COMMANDS([src/cysignals/__init__.pxd],
+     # Generate a file __init__.pxd to set correct compiler options.
      [[
--			echo "# distutils: extra_compile_args = $EXTRACOMPILEARGS" >build/src/config.pxd
--			echo "# distutils: extra_link_args = -DCYSIGNALS_DUMMY $EXTRALINKARGS" >>build/src/config.pxd
-+			echo "# distutils: extra_compile_args = $EXTRACOMPILEARGS" > src/config.pxd
-+			echo "# distutils: extra_link_args = -DCYSIGNALS_DUMMY $EXTRALINKARGS" >> src/config.pxd
+-			echo "# distutils: extra_compile_args = $EXTRACOMPILEARGS" > build/src/cysignals/__init__.pxd
+-			echo "# distutils: extra_link_args = $EXTRALINKARGS" >> build/src/cysignals/__init__.pxd
++			echo "# distutils: extra_compile_args = $EXTRACOMPILEARGS" > src/cysignals/__init__.pxd
++			echo "# distutils: extra_link_args = $EXTRALINKARGS" >> src/cysignals/__init__.pxd
  		]],
      [
  			EXTRACOMPILEARGS="$PARI_CPPFLAGS $PARI_CFLAGS"
diff --git a/debian/patches/upstream-source-tools-gdb-handling_enhancement.patch b/debian/patches/upstream-source-tools-gdb-handling_enhancement.patch
index 5d34155..e881fc0 100644
--- a/debian/patches/upstream-source-tools-gdb-handling_enhancement.patch
+++ b/debian/patches/upstream-source-tools-gdb-handling_enhancement.patch
@@ -6,11 +6,11 @@ Description: enhance helper handling in cysignals-CSI
 Origin: vendor, Debian
 Forwarded: https://github.com/sagemath/cysignals/pull/39
 Author: Jerome Benoit <calculus at rezozer.net>
-Last-Update: 2016-10-10
+Last-Update: 2016-11-02
 
 --- a/setup.py
 +++ b/setup.py
-@@ -147,11 +147,13 @@
+@@ -170,11 +170,13 @@
      platforms=["POSIX"],
  
      ext_modules=extensions,
@@ -19,14 +19,14 @@ Last-Update: 2016-10-10
      package_dir={"cysignals": opj("src", "cysignals"),
 -                 "cysignals-cython": opj(cythonize_dir, "src", "cysignals")},
 +                 "cysignals-cython": opj(cythonize_dir, "src", "cysignals"),
-+								 "cysignals_gdb": opj("src", "scripts")},
++                 "cysignals_gdb": opj("src", "scripts")},
      package_data={"cysignals": ["*.pxi", "*.pxd", "*.h"],
--                  "cysignals-cython": ["__init__.pxd", "*.h"]},
+-                  "cysignals-cython": ["*.h"]},
 -    scripts=glob(opj("src", "scripts", "*")),
-+                  "cysignals-cython": ["__init__.pxd", "*.h"],
-+									"cysignals_gdb": ["cysignals-CSI-helper.py"]},
++                  "cysignals-cython": ["*.h"],
++                  "cysignals_gdb": ["cysignals-CSI-helper.py"]},
 +    scripts=[opj("src", "scripts", "cysignals-CSI")],
-     cmdclass=dict(build_py=build_py_cython),
+     cmdclass=dict(build_py=build_py, build_ext=build_ext),
  )
 --- a/src/scripts/cysignals-CSI
 +++ b/src/scripts/cysignals-CSI
diff --git a/debian/rules b/debian/rules
index 175819c..a37f4ac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,14 +40,14 @@ override_dh_auto_test-arch:
 override_dh_auto_test-indep:
 	$(call adhoc_dh_auto_test_do,bare)
 
-DEB_INSTALLEXAMPLES_DOCTEST = build/DEBIAN/examples/doctest
+DEB_INSTALLEXAMPLES_DOCTEST = $(CURDIR)/build/DEBIAN/examples/doctest
 override_dh_prep-indep:
 	help2man $(H2MFLAGS) -s 1 \
 			-n "debugger information extractor for Python processes" \
 			-o cysignals-CSI.1 \
-		debian/adhoc/wrappers/cysignals-CSI
+		$(CURDIR)/debian/adhoc/wrappers/cysignals-CSI
 	mkdir -p $(DEB_INSTALLEXAMPLES_DOCTEST)
-	cp -p -t $(DEB_INSTALLEXAMPLES_DOCTEST) src/cysignals/*.pyx
+	cp -p -t $(DEB_INSTALLEXAMPLES_DOCTEST) $(CURDIR)/src/cysignals/*.pyx
 
 override_dh_auto_install-arch:
 	$(call adhoc_dh_auto_install_do,bare)
@@ -62,18 +62,18 @@ override_dh_install-arch:
 	true
 
 override_dh_install-indep:
-	dh_install --package cysignals-tools --sourcedir=debian/tmp/bare
+	dh_install --package cysignals-tools --sourcedir=$(CURDIR)/debian/tmp/bare
 	dh_install --indep --remaining-packages
 
 override_dh_installdocs:
-	dh_installdocs --all debian/README.Debian
+	dh_installdocs --all $(CURDIR)/debian/README.Debian
 
 DEB_SPHINXDOC_DOCDIR=$(CURDIR)/debian/python-cysignals-doc/usr/share/doc/python-cysignals-doc
 override_dh_sphinxdoc-indep:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
 	$(MAKE) -C docs latexpdf PAPER=a4 LATEXOPTS='-interaction batchmode'
 	cp -p $(CURDIR)/docs/build/latex/cysignals.pdf $(DEB_SPHINXDOC_DOCDIR)
-	PYTHONPATH=$(CURDIR) sphinx-build -b html docs/source $(DEB_SPHINXDOC_DOCDIR)/html
+	PYTHONPATH=$(CURDIR) sphinx-build -b html $(CURDIR)/docs/source $(DEB_SPHINXDOC_DOCDIR)/html
 	dh_sphinxdoc -O--buildsystem=pybuild
 endif
 
@@ -98,39 +98,39 @@ adhoc_dh_auto_configure_do = \
 
 ## parameter: flavour
 adhoc_dh_auto_build_do = \
-	$(if $(wildcard build/dh-stamp-auto_build-$(1)),, \
+	$(if $(wildcard $(CURDIR)/build/dh-stamp-auto_build-$(1)),, \
 		PYSETUP_CONFIGURE_FLAGS=$(PYSETUP_CONFIGURE_FLAGS_$(1)) \
 		dh_auto_build -- \
 			--before-build "mkdir -v -p {build_dir}/../build-$(1)" \
 			--after-build  "\
 				mv -v {build_dir}/* {build_dir}/../build-$(1) && \
-				echo PYBUILD_interpreter={interpreter} > build/dh-test-auto_build-$(1).sh && \
-				echo PYBUILD_build_dir={build_dir}/../build-$(1) >> build/dh-test-auto_build-$(1).sh \
+				echo PYBUILD_interpreter={interpreter} > $(CURDIR)/build/dh-test-auto_build-$(1).sh && \
+				echo PYBUILD_build_dir={build_dir}/../build-$(1) >> $(CURDIR)/build/dh-test-auto_build-$(1).sh \
 				" $(NEWLINE) \
-		touch build/dh-stamp-auto_build-$(1) $(NEWLINE) \
+		touch $(CURDIR)/build/dh-stamp-auto_build-$(1) $(NEWLINE) \
 		)
 
 #### parameter: flavour
 adhoc_dh_auto_test_do = \
-	$(if $(wildcard build/dh-stamp-auto_test-$(1)),, \
+	$(if $(wildcard $(CURDIR)/build/dh-stamp-auto_test-$(1)),, \
 	$(info FROZEN: \
 		PYSETUP_CONFIGURE_FLAGS=$(PYSETUP_CONFIGURE_FLAGS_$(1)) \
 		dh_auto_test -- \
 			--before-test "rmdir {build_dir} && ln -vrsf {build_dir}/../build-$(1) {build_dir}" \
 			--after-test  "rm -v {build_dir}" ) $(NEWLINE) \
-		debian/adhoc/tests/check-doctest $(1) $(NEWLINE) \
-		debian/adhoc/tests/check-example $(1) $(NEWLINE) \
-		touch build/dh-stamp-auto_test-$(1) $(NEWLINE) \
+		$(CURDIR)/debian/adhoc/tests/check-doctest $(1) $(NEWLINE) \
+		$(CURDIR)/debian/adhoc/tests/check-example $(1) $(NEWLINE) \
+		touch $(CURDIR)/build/dh-stamp-auto_test-$(1) $(NEWLINE) \
 		)
 
 ## parameter: flavour
 adhoc_dh_auto_install_do = \
-	$(if $(wildcard build/dh-stamp-auto_install-$(1)),, \
-		PYSETUP_CONFIGURE_FLAGS=$(PYSETUP_CONFIGURE_FLAGS_$(1)) PYBUILD_DESTDIR=debian/tmp/$(1) \
+	$(if $(wildcard $(CURDIR)/build/dh-stamp-auto_install-$(1)),, \
+		PYSETUP_CONFIGURE_FLAGS=$(PYSETUP_CONFIGURE_FLAGS_$(1)) PYBUILD_DESTDIR=$(CURDIR)/debian/tmp/$(1) \
 		dh_auto_install -- \
 			--before-install "rmdir {build_dir} && ln -vrsf {build_dir}/../build-$(1) {build_dir}" \
 			--after-install  "rm -v {build_dir}" $(NEWLINE) \
-		touch build/dh-stamp-auto_install-$(1) $(NEWLINE) \
+		touch $(CURDIR)/build/dh-stamp-auto_install-$(1) $(NEWLINE) \
 		)
 
 PYSETUP_CONFIGURE_FLAGS_bare = '--without-pari'
diff --git a/debian/tests/control b/debian/tests/control
index ea37c37..bee2789 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -8,4 +8,4 @@ Test-Command: debian/tests/check example bare
 Depends: python-cysignals-bare, python-cysignals-doc, cython, libpython-dev, build-essential
 
 Test-Command: debian/tests/check example pari
-Depends: python-cysignals-pari, python-cysignals-doc, cython, libpython-dev, libpari-dev, build-essential
+Depends: python-cysignals-pari, python-cysignals-doc, cython, libpython-dev, build-essential

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/cysignals.git



More information about the Python-modules-commits mailing list