[Python-modules-commits] r14058 - in packages/numpy/trunk/debian (5 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Mon Jul 26 22:43:08 UTC 2010
Date: Monday, July 26, 2010 @ 22:43:05
Author: morph
Revision: 14058
* debian/{dh_numpy, python-numpy.install, python-numpy.manpages}
- added debhelper script dh_numpy that using .../dist/python-numpy adds to
python:Depends the correct versioned depends on python-numpy; thansk to
Piotr O?\197?\188arowski for providing the script
Added:
packages/numpy/trunk/debian/dh_numpy
packages/numpy/trunk/debian/dh_numpy.1
Modified:
packages/numpy/trunk/debian/changelog
packages/numpy/trunk/debian/python-numpy.install
packages/numpy/trunk/debian/python-numpy.manpages
Modified: packages/numpy/trunk/debian/changelog
===================================================================
--- packages/numpy/trunk/debian/changelog 2010-07-26 22:23:15 UTC (rev 14057)
+++ packages/numpy/trunk/debian/changelog 2010-07-26 22:43:05 UTC (rev 14058)
@@ -3,8 +3,12 @@
* debian/rules
- starts providing /usr/share/python/dist/python-numpy file, to be used by
dh_python2/dh_pysupport for dependency declaration
+ * debian/{dh_numpy, python-numpy.install, python-numpy.manpages}
+ - added debhelper script dh_numpy that using .../dist/python-numpy adds to
+ python:Depends the correct versioned depends on python-numpy; thansk to
+ Piotr Ożarowski for providing the script
- -- Sandro Tosi <morph at debian.org> Mon, 26 Jul 2010 21:04:30 +0200
+ -- Sandro Tosi <morph at debian.org> Tue, 27 Jul 2010 00:42:07 +0200
python-numpy (1:1.4.1-3) unstable; urgency=low
Added: packages/numpy/trunk/debian/dh_numpy
===================================================================
--- packages/numpy/trunk/debian/dh_numpy (rev 0)
+++ packages/numpy/trunk/debian/dh_numpy 2010-07-26 22:43:05 UTC (rev 14058)
@@ -0,0 +1,47 @@
+#!/usr/bin/perl -w
+
+# Copyright © 2010 Piotr Ożarowski <piotr at debian.org>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+init();
+
+my $numpy_dep;
+
+open(PYDIST, '/usr/share/python/dist/python-numpy') || error("cannot read python-numpy pydist file: $!\n");
+while (<PYDIST>) {
+ my($line) = $_;
+ chomp($line);
+ if ($line =~ /[^\s]*\s([^;]*).*/ ) {
+ $numpy_dep = $1;
+ }
+}
+
+if($numpy_dep eq "") {
+ error ("cannot parse pydist file")
+}
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ addsubstvar($package, "python:Depends", $numpy_dep);
+}
+
+exit 0
Added: packages/numpy/trunk/debian/dh_numpy.1
===================================================================
--- packages/numpy/trunk/debian/dh_numpy.1 (rev 0)
+++ packages/numpy/trunk/debian/dh_numpy.1 2010-07-26 22:43:05 UTC (rev 14058)
@@ -0,0 +1,15 @@
+.TH DH_NUMPY 1 "2010-07-27" "Numpy"
+.SH NAME
+dh_numpy \- adds to python:Depends the Numpy versioned depends
+.SH SYNOPSYS
+\fBdh_numpy\fR [\fIdebhelper\ options\fR]
+.SH DESCRIPTION
+dh_numpy adds information about the correct versioned depends on python-numpy to python:Depends substvar.
+.PP
+This is needed because some Python extensions require strict versioned depends on python-numpy, and using this helper script is the easiest way to get them.
+.PP
+The helper script uses the information stored in /usr/share/python/dist/python-numpy to generate the Depends information; that file is also used by dh_python2 (and from dh_pysupport when implemented) to generate the same set of Depends. This script allows you to not use dh_python2 if you don't want to.
+.SH "SEE ALSO"
+\fIdebhelper\fR(7)
+.PP
+This program is not a part of debhelper (and it's provided by python-numpy).
Modified: packages/numpy/trunk/debian/python-numpy.install
===================================================================
--- packages/numpy/trunk/debian/python-numpy.install 2010-07-26 22:23:15 UTC (rev 14057)
+++ packages/numpy/trunk/debian/python-numpy.install 2010-07-26 22:43:05 UTC (rev 14058)
@@ -1,3 +1,4 @@
+debian/dh_numpy usr/bin
usr/lib/python*/*-packages/*/*/*[!_][!_].so
usr/lib/python*/*-packages/*/*.py
usr/lib/python*/*-packages/*.egg-info
Modified: packages/numpy/trunk/debian/python-numpy.manpages
===================================================================
--- packages/numpy/trunk/debian/python-numpy.manpages 2010-07-26 22:23:15 UTC (rev 14057)
+++ packages/numpy/trunk/debian/python-numpy.manpages 2010-07-26 22:43:05 UTC (rev 14058)
@@ -1 +1,2 @@
numpy/f2py/f2py.1
+debian/dh_numpy.1
More information about the Python-modules-commits
mailing list