diff -Nru numpy-1.19.5/debian/changelog numpy-1.19.5/debian/changelog --- numpy-1.19.5/debian/changelog 2022-08-07 02:56:36.000000000 +0000 +++ numpy-1.19.5/debian/changelog 2022-08-07 17:52:15.000000000 +0000 @@ -1,33 +1,10 @@ -numpy (1:1.19.5-1ubuntu1~20.04.sav2) focal; urgency=medium +numpy (1:1.19.5-1ubuntu1+20.04.sav0) focal; urgency=medium - * d/{dh_numpy39,versions3.helper}: Change python-numpy* -> python3.9-numpy* - to generate and provide correct package dependencies for this custom build + * Rebuild with both Python 3.8 and 3.9 (as supported by debian/rules): + - debian/control: Add python3.9-{dbg,dev} BDs for this custom build + - debian/rules: Explicitly set "PY3VERS=3.8 3.9" for both versions - -- Rob Savoury Sat, 06 Aug 2022 19:56:36 -0700 - -numpy (1:1.19.5-1ubuntu1~20.04.sav1) focal; urgency=medium - - * Custom build for Blender and related packages (at ppa:savoury1/blender): - - d/control: Rename python-{numpy,numpy-dbg,f2py,numpy-dev} -> python3.9-* - - Change python3.9-numpy ${python3:Depends} -> python3.9 for Python 3.9 - - Change python3.9-numpy-dbg Depends to python3.9-{dbg,numpy} per above - - d/versions: Rename to versions39 for no file conflict with default numpy - - d/versions3.helper: Edit and change all versions -> version39 per above - - d/dh_numpy3: Rename to dh_numpy39, edit and change versions -> versions39 - - d/numpy3.pm: Rename to numpy39.pm, edit and change dh_numpy -> dh_numpy39 - - d/rules: Add --shebang=/usr/bin/python3.9 to dh_python3 invocation - - Move usr/lib/python3 -> usr/lib/python3.9 for python3.9-numpy{-dbg} - - Change all debian/python3 -> debian/python3.9 for new package paths - - Change all python3/dist-packages -> python3.9/dist-packages for 3.9 - - Skip copying f2py3.9{-dbg} to unversioned f2py{-dbg} for no conflicts - - Move dh_link sequence to override_dh_python3 after f2py3* sed commands - - d/python3-numpy{-dbg}.install: Rename to python3.9-numpy{-dbg} per above - - Edit to skip installing unversioned usr/bin/f2py3{-dbg} (not included) - - d/python3.9-numpy.install: Rename {dh_numpy3,numpy3,versions} with 39 - - d/python3.9-numpy.{postinst,prerm}: Create, include standard snippets for - py3{compile,clean} modified to use -V 3.9 option and also python3.9-numpy - - -- Rob Savoury Sat, 06 Aug 2022 17:29:51 -0700 + -- Rob Savoury Sun, 07 Aug 2022 10:52:15 -0700 numpy (1:1.19.5-1ubuntu1~20.04.sav0) focal; urgency=medium diff -Nru numpy-1.19.5/debian/control numpy-1.19.5/debian/control --- numpy-1.19.5/debian/control 2022-08-07 00:09:57.000000000 +0000 +++ numpy-1.19.5/debian/control 2022-08-07 16:46:35.000000000 +0000 @@ -24,6 +24,8 @@ liblapack-dev [!arm !m68k], python3-all-dbg, python3-all-dev, + python3.9-dbg, + python3.9-dev, # python3-hypothesis (>= 5.19.1) , # python3-pytest , # python3-scipy , @@ -34,22 +36,21 @@ Vcs-Browser: https://salsa.debian.org/python-team/packages/numpy Homepage: http://www.numpy.org/ -Package: python3.9-numpy +Package: python3-numpy Architecture: any Depends: python3-pkg-resources, ${misc:Depends}, -# ${python3:Depends}, - python3.9, + ${python3:Depends}, ${shlibs:Depends}, Suggests: gcc (>= 4:4.6.1-5), gfortran, python-numpy-doc, python3-dev, - python3.9-numpy-dbg, + python3-numpy-dbg, python3-pytest, -Provides: dh-sequence-numpy39, - python3.9-f2py, - python3.9-numpy-dev, +Provides: dh-sequence-numpy3, + python3-f2py, + python3-numpy-dev, ${numpy3:Provides}, ${python3:Provides}, Breaks: python3-aplpy (<< 2.0~rc2-1), @@ -71,12 +72,12 @@ . This package contains Numpy for Python 3. -Package: python3.9-numpy-dbg +Package: python3-numpy-dbg Section: debug Architecture: any Multi-Arch: same -Depends: python3.9-dbg, - python3.9-numpy (= ${binary:Version}), +Depends: python3-dbg, + python3-numpy (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, Description: Fast array facility to the Python 3 language (debug extension) diff -Nru numpy-1.19.5/debian/dh_numpy3 numpy-1.19.5/debian/dh_numpy3 --- numpy-1.19.5/debian/dh_numpy3 1970-01-01 00:00:00.000000000 +0000 +++ numpy-1.19.5/debian/dh_numpy3 2021-01-13 06:25:24.000000000 +0000 @@ -0,0 +1,58 @@ +#!/usr/bin/perl -w + +# Copyright © 2010 Piotr Ożarowski +# Copyright © 2012 Jakub Wilk +# +# 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(options => { + "strict" => \$dh{STRICT}, +}); + +my %data; + +open(FILE, '<', '/usr/share/numpy3/versions') or error("cannot read version data: $!\n"); +while () { + chomp; + next unless /^[^#]/; + my ($key, $value) = split; + $data{$key} = $value; +} +close FILE; + +unless ($data{'abi'} and $data{'api'} and $data{'api-min-version'}) { + error("cannot parse version data file"); +} + +foreach my $package (@{$dh{DOPACKAGES}}) { + my $numpy_dep; + if (package_arch($package) eq 'all') { + $numpy_dep = 'python3-numpy'; + } elsif ($dh{STRICT}) { + $numpy_dep = "python3-numpy-api$data{'api'}"; + } else { + $numpy_dep = "python3-numpy (>= $data{'api-min-version'}), python3-numpy-abi$data{'abi'}"; + } + addsubstvar($package, "python3:Depends", $numpy_dep); +} + +exit 0 diff -Nru numpy-1.19.5/debian/dh_numpy39 numpy-1.19.5/debian/dh_numpy39 --- numpy-1.19.5/debian/dh_numpy39 2022-08-07 02:54:33.000000000 +0000 +++ numpy-1.19.5/debian/dh_numpy39 1970-01-01 00:00:00.000000000 +0000 @@ -1,58 +0,0 @@ -#!/usr/bin/perl -w - -# Copyright © 2010 Piotr Ożarowski -# Copyright © 2012 Jakub Wilk -# -# 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(options => { - "strict" => \$dh{STRICT}, -}); - -my %data; - -open(FILE, '<', '/usr/share/numpy3/versions39') or error("cannot read version data: $!\n"); -while () { - chomp; - next unless /^[^#]/; - my ($key, $value) = split; - $data{$key} = $value; -} -close FILE; - -unless ($data{'abi'} and $data{'api'} and $data{'api-min-version'}) { - error("cannot parse version data file"); -} - -foreach my $package (@{$dh{DOPACKAGES}}) { - my $numpy_dep; - if (package_arch($package) eq 'all') { - $numpy_dep = 'python3.9-numpy'; - } elsif ($dh{STRICT}) { - $numpy_dep = "python3.9-numpy-api$data{'api'}"; - } else { - $numpy_dep = "python3.9-numpy (>= $data{'api-min-version'}), python3.9-numpy-abi$data{'abi'}"; - } - addsubstvar($package, "python3:Depends", $numpy_dep); -} - -exit 0 diff -Nru numpy-1.19.5/debian/numpy39.pm numpy-1.19.5/debian/numpy39.pm --- numpy-1.19.5/debian/numpy39.pm 2022-08-06 19:21:40.000000000 +0000 +++ numpy-1.19.5/debian/numpy39.pm 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -#!/usr/bin/perl -use warnings; -use strict; -use Debian::Debhelper::Dh_Lib; - -insert_before("dh_gencontrol", "dh_numpy39"); - -1 diff -Nru numpy-1.19.5/debian/numpy3.pm numpy-1.19.5/debian/numpy3.pm --- numpy-1.19.5/debian/numpy3.pm 1970-01-01 00:00:00.000000000 +0000 +++ numpy-1.19.5/debian/numpy3.pm 2021-01-13 06:25:24.000000000 +0000 @@ -0,0 +1,8 @@ +#!/usr/bin/perl +use warnings; +use strict; +use Debian::Debhelper::Dh_Lib; + +insert_before("dh_gencontrol", "dh_numpy3"); + +1 diff -Nru numpy-1.19.5/debian/python3.9-numpy-dbg.install numpy-1.19.5/debian/python3.9-numpy-dbg.install --- numpy-1.19.5/debian/python3.9-numpy-dbg.install 2022-08-06 19:26:11.000000000 +0000 +++ numpy-1.19.5/debian/python3.9-numpy-dbg.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#usr/bin/f2py3-dbg -usr/bin/f2py3.?-dbg -usr/lib/python3*/*-packages/*/*/*.cpython-3?d*.so diff -Nru numpy-1.19.5/debian/python3.9-numpy.install numpy-1.19.5/debian/python3.9-numpy.install --- numpy-1.19.5/debian/python3.9-numpy.install 2022-08-06 19:27:02.000000000 +0000 +++ numpy-1.19.5/debian/python3.9-numpy.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -debian/dh_numpy39 usr/bin -debian/numpy39.pm usr/share/perl5/Debian/Debhelper/Sequence/ -debian/versions39 usr/share/numpy3/ -#usr/bin/f2py3 -usr/bin/f2py3.? -usr/lib/python3*/*-packages/*.egg-info -usr/lib/python3*/*-packages/*/*.py -usr/lib/python3*/*-packages/*/*/*.cpython-3?[!d]*.so -usr/lib/python3*/*-packages/*/*/*/libnpymath.a -usr/lib/python3*/*-packages/numpy/*.py -usr/lib/python3*/*-packages/numpy/compat/ -usr/lib/python3*/*-packages/numpy/core/ -usr/lib/python3*/*-packages/numpy/distutils/ -usr/lib/python3*/*-packages/numpy/f2py/*.py -usr/lib/python3*/*-packages/numpy/f2py/src -usr/lib/python3*/*-packages/numpy/fft/ -usr/lib/python3*/*-packages/numpy/lib/ -usr/lib/python3*/*-packages/numpy/linalg/ -usr/lib/python3*/*-packages/numpy/ma/ -usr/lib/python3*/*-packages/numpy/matrixlib/ -usr/lib/python3*/*-packages/numpy/polynomial/ -usr/lib/python3*/*-packages/numpy/random/ -usr/lib/python3*/*-packages/numpy/testing/ -usr/lib/python3*/*-packages/numpy/tests/ diff -Nru numpy-1.19.5/debian/python3.9-numpy.postinst numpy-1.19.5/debian/python3.9-numpy.postinst --- numpy-1.19.5/debian/python3.9-numpy.postinst 2022-08-06 20:32:45.000000000 +0000 +++ numpy-1.19.5/debian/python3.9-numpy.postinst 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -#!/bin/sh -set -e - -# Automatically added by dh_python3 -if command -v py3compile >/dev/null 2>&1; then - py3compile -V 3.9 -p python3.9-numpy:amd64 -fi -if command -v pypy3compile >/dev/null 2>&1; then - pypy3compile -V 3.9 -p python3.9-numpy:amd64 || true -fi - -# End automatically added section diff -Nru numpy-1.19.5/debian/python3.9-numpy.prerm numpy-1.19.5/debian/python3.9-numpy.prerm --- numpy-1.19.5/debian/python3.9-numpy.prerm 2022-08-06 20:33:05.000000000 +0000 +++ numpy-1.19.5/debian/python3.9-numpy.prerm 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -#!/bin/sh -set -e - -# Automatically added by dh_python3 -if command -v py3clean >/dev/null 2>&1; then - py3clean -V 3.9 -p python3.9-numpy:amd64 -else - dpkg -L python3.9-numpy:amd64 | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)' - find /usr/lib/python3.9/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir -fi - -# End automatically added section diff -Nru numpy-1.19.5/debian/python3-numpy-dbg.install numpy-1.19.5/debian/python3-numpy-dbg.install --- numpy-1.19.5/debian/python3-numpy-dbg.install 1970-01-01 00:00:00.000000000 +0000 +++ numpy-1.19.5/debian/python3-numpy-dbg.install 2021-01-13 06:25:24.000000000 +0000 @@ -0,0 +1,3 @@ +usr/bin/f2py3-dbg +usr/bin/f2py3.?-dbg +usr/lib/python3*/*-packages/*/*/*.cpython-3?d*.so diff -Nru numpy-1.19.5/debian/python3-numpy.install numpy-1.19.5/debian/python3-numpy.install --- numpy-1.19.5/debian/python3-numpy.install 1970-01-01 00:00:00.000000000 +0000 +++ numpy-1.19.5/debian/python3-numpy.install 2021-01-13 06:25:24.000000000 +0000 @@ -0,0 +1,24 @@ +debian/dh_numpy3 usr/bin +debian/numpy3.pm usr/share/perl5/Debian/Debhelper/Sequence/ +debian/versions usr/share/numpy3/ +usr/bin/f2py3 +usr/bin/f2py3.? +usr/lib/python3*/*-packages/*.egg-info +usr/lib/python3*/*-packages/*/*.py +usr/lib/python3*/*-packages/*/*/*.cpython-3?[!d]*.so +usr/lib/python3*/*-packages/*/*/*/libnpymath.a +usr/lib/python3*/*-packages/numpy/*.py +usr/lib/python3*/*-packages/numpy/compat/ +usr/lib/python3*/*-packages/numpy/core/ +usr/lib/python3*/*-packages/numpy/distutils/ +usr/lib/python3*/*-packages/numpy/f2py/*.py +usr/lib/python3*/*-packages/numpy/f2py/src +usr/lib/python3*/*-packages/numpy/fft/ +usr/lib/python3*/*-packages/numpy/lib/ +usr/lib/python3*/*-packages/numpy/linalg/ +usr/lib/python3*/*-packages/numpy/ma/ +usr/lib/python3*/*-packages/numpy/matrixlib/ +usr/lib/python3*/*-packages/numpy/polynomial/ +usr/lib/python3*/*-packages/numpy/random/ +usr/lib/python3*/*-packages/numpy/testing/ +usr/lib/python3*/*-packages/numpy/tests/ diff -Nru numpy-1.19.5/debian/rules numpy-1.19.5/debian/rules --- numpy-1.19.5/debian/rules 2022-08-07 00:27:52.000000000 +0000 +++ numpy-1.19.5/debian/rules 2022-08-07 16:45:57.000000000 +0000 @@ -2,12 +2,11 @@ export DH_VERBOSE=1 -PY3VERS=$(shell py3versions -vr) +#PY3VERS=$(shell py3versions -vr) +PY3VERS=3.8 3.9 PY3DEF=$(shell py3versions -dv) PY3LIBPATH := $(shell python3 -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)") -PACKAGEDIR = $(CURDIR)/debian/python3.9-numpy - # Look at #634012 to understand why is needed and what will happen if we set # compat to 9 unexport LDFLAGS @@ -48,15 +47,12 @@ # dh_link -ppython3-numpy-dbg /usr/share/man/man1/f2py3.1.gz /usr/share/man/man1/f2py3-dbg.1.gz; override_dh_python3: - dh_python3 --shebang=/usr/bin/python3.9 - - mv $(PACKAGEDIR)/usr/lib/python3 $(PACKAGEDIR)/usr/lib/python3.9 - mv $(PACKAGEDIR)-dbg/usr/lib/python3 $(PACKAGEDIR)-dbg/usr/lib/python3.9 + dh_python3 ENTRYPOINT=non-existant # tweak the entry_points list to include all supported versions - if [ -f $(CURDIR)/debian/python3.9-numpy/usr/lib/python3.9/dist-packages/numpy-*.egg-info/entry_points.txt ] ; then \ - ENTRYPOINT=$(shell ls $(CURDIR)/debian/python3.9-numpy/usr/lib/python3.9/dist-packages/numpy-*.egg-info/entry_points.txt) ; \ + if [ -f $(CURDIR)/debian/python3-numpy/usr/lib/python3/dist-packages/numpy-*.egg-info/entry_points.txt ] ; then \ + ENTRYPOINT=$(shell ls $(CURDIR)/debian/python3-numpy/usr/lib/python3/dist-packages/numpy-*.egg-info/entry_points.txt) ; \ for v in $(PY3VERS); do \ if ! grep $$v $$ENTRYPOINT; \ then \ @@ -65,20 +61,6 @@ done \ fi - # create symlinks for .h files - set -e; for i in $(PY3VERS); do \ - ABITAG=`python$$i -c "import sys; print(sys.abiflags)"`; \ - [ -d $(CURDIR)/debian/python3.9-numpy/usr/include/python$$i$$ABITAG ] || \ - mkdir -p $(CURDIR)/debian/python3.9-numpy/usr/include/python$$i$$ABITAG; \ - dh_link -ppython3.9-numpy usr/lib/python3.9/dist-packages/numpy/core/include/numpy usr/include/python$$i$$ABITAG/numpy; \ - done - set -e; for i in $(PY3VERS); do \ - ABITAG=`python$$i-dbg -c "import sys; print(sys.abiflags)"`; \ - [ -d $(CURDIR)/debian/python3.9-numpy-dbg/usr/include/python$${i}$$ABITAG ] || \ - mkdir -p $(CURDIR)/debian/python3.9-numpy-dbg/usr/include/python$${i}$$ABITAG; \ - dh_link -ppython3.9-numpy-dbg usr/lib/python3.9/dist-packages/numpy/core/include/numpy/ usr/include/python$${i}$$ABITAG/numpy; \ - done - override_dh_install: # add shebang information to f2py script set -e; for v in $(PY3VERS); do \ @@ -86,19 +68,33 @@ cp -a debian/tmp/usr/bin/f2py$$v debian/tmp/usr/bin/f2py$$v-dbg ; \ sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$$v-dbg," debian/tmp/usr/bin/f2py$$v-dbg; \ done - #cp -a debian/tmp/usr/bin/f2py$(PY3DEF) debian/tmp/usr/bin/f2py3 - #sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python3," debian/tmp/usr/bin/f2py3 - #cp -a debian/tmp/usr/bin/f2py$(PY3DEF)-dbg debian/tmp/usr/bin/f2py3-dbg - #sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python3-dbg," debian/tmp/usr/bin/f2py3-dbg + cp -a debian/tmp/usr/bin/f2py$(PY3DEF) debian/tmp/usr/bin/f2py3 + sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python3," debian/tmp/usr/bin/f2py3 + cp -a debian/tmp/usr/bin/f2py$(PY3DEF)-dbg debian/tmp/usr/bin/f2py3-dbg + sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python3-dbg," debian/tmp/usr/bin/f2py3-dbg dh_install + # create symlinks for .h files + set -e; for i in $(PY3VERS); do \ + ABITAG=`python$$i -c "import sys; print(sys.abiflags)"`; \ + [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$$i$$ABITAG ] || \ + mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$$i$$ABITAG; \ + dh_link -ppython3-numpy usr/lib/python3/dist-packages/numpy/core/include/numpy usr/include/python$$i$$ABITAG/numpy; \ + done + set -e; for i in $(PY3VERS); do \ + ABITAG=`python$$i-dbg -c "import sys; print(sys.abiflags)"`; \ + [ -d $(CURDIR)/debian/python3-numpy-dbg/usr/include/python$${i}$$ABITAG ] || \ + mkdir -p $(CURDIR)/debian/python3-numpy-dbg/usr/include/python$${i}$$ABITAG; \ + dh_link -ppython3-numpy-dbg usr/lib/python3/dist-packages/numpy/core/include/numpy/ usr/include/python$${i}$$ABITAG/numpy; \ + done + # share -dbg and normal package doc dirs - rm -rf debian/python3.9-numpy-dbg/usr/share/doc/python3.9-numpy-dbg - dh_link -ppython3.9-numpy-dbg usr/share/doc/python3.9-numpy usr/share/doc/python3.9-numpy-dbg + rm -rf debian/python3-numpy-dbg/usr/share/doc/python3-numpy-dbg + dh_link -ppython3-numpy-dbg usr/share/doc/python3-numpy usr/share/doc/python3-numpy-dbg override_dh_gencontrol: - python3 debian/versions3.helper >> debian/python3.9-numpy.substvars + python3 debian/versions3.helper >> debian/python3-numpy.substvars dh_gencontrol override_dh_compress: @@ -106,9 +102,9 @@ override_dh_strip: ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) - dh_strip -ppython3.9-numpy --dbg-package=python3.9-numpy-dbg + dh_strip -ppython3-numpy --dbg-package=python3-numpy-dbg # dh_strip seemingly doesn't catch the PEP 3149-style debug names - rm debian/python3.9-numpy/usr/lib/python3*/*-packages/*/*/*.cpython-3?d*.so + rm debian/python3-numpy/usr/lib/python3*/*-packages/*/*/*.cpython-3?d*.so endif diff -Nru numpy-1.19.5/debian/versions numpy-1.19.5/debian/versions --- numpy-1.19.5/debian/versions 1970-01-01 00:00:00.000000000 +0000 +++ numpy-1.19.5/debian/versions 2021-01-13 06:25:24.000000000 +0000 @@ -0,0 +1,15 @@ +# ABI version. +# This number must be changed every time C_ABI_VERSION changes. +# It's should be normally equal to C_ABI_VERSION - 0x1000000. +# Check numpy/core/setup_common.py +abi 9 + +# Minor API version. +# This number must be changed every time C_API_VERSION changes. +# It's should be normally equal to C_API_VERSION. +# Description of the changes at core/code_generators/cversions.txt +api 13 + +# Minimum version of Numpy that shares this minor API version. +# This version must be updated every time C_API_VERSION changes. +api-min-version 1:1.16.0~rc1 diff -Nru numpy-1.19.5/debian/versions39 numpy-1.19.5/debian/versions39 --- numpy-1.19.5/debian/versions39 2021-01-13 06:25:24.000000000 +0000 +++ numpy-1.19.5/debian/versions39 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -# ABI version. -# This number must be changed every time C_ABI_VERSION changes. -# It's should be normally equal to C_ABI_VERSION - 0x1000000. -# Check numpy/core/setup_common.py -abi 9 - -# Minor API version. -# This number must be changed every time C_API_VERSION changes. -# It's should be normally equal to C_API_VERSION. -# Description of the changes at core/code_generators/cversions.txt -api 13 - -# Minimum version of Numpy that shares this minor API version. -# This version must be updated every time C_API_VERSION changes. -api-min-version 1:1.16.0~rc1 diff -Nru numpy-1.19.5/debian/versions3.helper numpy-1.19.5/debian/versions3.helper --- numpy-1.19.5/debian/versions3.helper 2022-08-07 02:53:14.000000000 +0000 +++ numpy-1.19.5/debian/versions3.helper 2021-01-13 06:25:24.000000000 +0000 @@ -1,7 +1,7 @@ #!/usr/bin/python ''' -Check if debian/versions39 is sane and generate substvars for numpy:Provides. +Check if debian/versions is sane and generate substvars for numpy:Provides. ''' import os @@ -14,7 +14,7 @@ exec(file.read(), data) finally: file.close() - file = open('debian/versions39', 'r') + file = open('debian/versions', 'r') try: for line in file: line = line.strip() @@ -24,9 +24,9 @@ data[key] = value finally: file.close() - assert data['abi'] == str(data['C_ABI_VERSION'] - 0x1000000), 'Is debian/versions39 up-to-date?' - assert data['api'] == str(data['C_API_VERSION']), 'Is debian/versions39 up-to-date?' - print('numpy3:Provides=python3.9-numpy-abi%s, python3.9-numpy-api%s' % (data['abi'], data['api'])) + assert data['abi'] == str(data['C_ABI_VERSION'] - 0x1000000), 'Is debian/versions up-to-date?' + assert data['api'] == str(data['C_API_VERSION']), 'Is debian/versions up-to-date?' + print('numpy3:Provides=python3-numpy-abi%s, python3-numpy-api%s' % (data['abi'], data['api'])) if __name__ == '__main__': main()