Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #920942 > unrolled thread

Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions

Started byGard Spreemann <gspreemann@gmail.com>
First post2018-10-04 13:50 +0200
Last post2018-10-04 15:40 +0200
Articles 5 — 5 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions Gard Spreemann <gspreemann@gmail.com> - 2018-10-04 13:50 +0200
    Bug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions) Andreas Tille <andreas@fam-tille.de> - 2018-10-04 14:40 +0200
      Bug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions) Sandro Tosi <morph@debian.org> - 2018-10-04 15:20 +0200
        Bug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions) Andreas Tille <tille@debian.org> - 2018-10-04 15:30 +0200
      Re: dh_python3 --no-ext-rename does not work (Was: Bug#910284:  r-cran-fastcluster does not build Python modules for all supported Python  versions) Piotr Ożarowski <piotr@debian.org> - 2018-10-04 15:40 +0200

#920942 — Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions

FromGard Spreemann <gspreemann@gmail.com>
Date2018-10-04 13:50 +0200
SubjectBug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions
Message-ID<wFaiK-4QM-3@gated-at.bofh.it>
Source: r-cran-fastcluster
Version: 1.1.25-1
Severity: important

Dear Maintainer,

The package currently does not build its Python modules for all
supported Python versions. For example, on Buster, we currently have

 $ py3versions -s
 python3.7 python3.6

Using fastcluster with the supported version 3.7 fails:

 $ python3.7
 Python 3.7.0 (default, Jun 27 2018, 14:40:03) 
 [GCC 8.1.0] on linux
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import fastcluster
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3/dist-packages/fastcluster.py", line 37, in <module>
     from _fastcluster import linkage_wrap, linkage_vector_wrap
 ModuleNotFoundError: No module named '_fastcluster'
 >>>

Loading with the current default Python 3 version (3.6) works as
intended.

Section 3.3 of the Python Policy says that module packages should
support the current Debian Python version, and more if possible.

Please consider building the Python module for all supported Python
versions.

Thanks.


 Best regards,
 Gard Spreemann

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

[toc] | [next] | [standalone]


#920951 — Bug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)

FromAndreas Tille <andreas@fam-tille.de>
Date2018-10-04 14:40 +0200
SubjectBug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)
Message-ID<wFb57-5l5-7@gated-at.bofh.it>
In reply to#920942
Control: tags -1 help

Hi,

I tried to fix the issue reported below by using
  dh_python3 --no-ext-rename
(see [1]) but this has no effect and the resulting package just
contains

  /usr/lib/python3/dist-packages/_fastcluster.cpython-36m-x86_64-linux-gnu.so

Am I missing something?

Kind regards

       Andreas.


[1] https://salsa.debian.org/r-pkg-team/r-cran-fastcluster/commit/0f244f584d8e166507cd5e27b6d2cd45047239df

On Thu, Oct 04, 2018 at 01:40:58PM +0200, Gard Spreemann wrote:
>  $ python3.7
>  Python 3.7.0 (default, Jun 27 2018, 14:40:03) 
>  [GCC 8.1.0] on linux
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> import fastcluster
>  Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/usr/lib/python3/dist-packages/fastcluster.py", line 37, in <module>
>      from _fastcluster import linkage_wrap, linkage_vector_wrap
>  ModuleNotFoundError: No module named '_fastcluster'

-- 
http://fam-tille.de

[toc] | [prev] | [next] | [standalone]


#920959 — Bug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)

FromSandro Tosi <morph@debian.org>
Date2018-10-04 15:20 +0200
SubjectBug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)
Message-ID<wFby9-5JI-9@gated-at.bofh.it>
In reply to#920951
are you building the package for python3.7 too? you are showing an ls
of an extension built for 3.6 while Gard is using 3.7
On Thu, Oct 4, 2018 at 8:45 AM Andreas Tille <andreas@fam-tille.de> wrote:
>
> Control: tags -1 help
>
> Hi,
>
> I tried to fix the issue reported below by using
>   dh_python3 --no-ext-rename
> (see [1]) but this has no effect and the resulting package just
> contains
>
>   /usr/lib/python3/dist-packages/_fastcluster.cpython-36m-x86_64-linux-gnu.so
>
> Am I missing something?
>
> Kind regards
>
>        Andreas.
>
>
> [1] https://salsa.debian.org/r-pkg-team/r-cran-fastcluster/commit/0f244f584d8e166507cd5e27b6d2cd45047239df
>
> On Thu, Oct 04, 2018 at 01:40:58PM +0200, Gard Spreemann wrote:
> >  $ python3.7
> >  Python 3.7.0 (default, Jun 27 2018, 14:40:03)
> >  [GCC 8.1.0] on linux
> >  Type "help", "copyright", "credits" or "license" for more information.
> >  >>> import fastcluster
> >  Traceback (most recent call last):
> >    File "<stdin>", line 1, in <module>
> >    File "/usr/lib/python3/dist-packages/fastcluster.py", line 37, in <module>
> >      from _fastcluster import linkage_wrap, linkage_vector_wrap
> >  ModuleNotFoundError: No module named '_fastcluster'
>
> --
> http://fam-tille.de
>


-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi

[toc] | [prev] | [next] | [standalone]


#920960 — Bug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)

FromAndreas Tille <tille@debian.org>
Date2018-10-04 15:30 +0200
SubjectBug#910284: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)
Message-ID<wFbRv-5PL-1@gated-at.bofh.it>
In reply to#920959
On Thu, Oct 04, 2018 at 09:08:44AM -0400, Sandro Tosi wrote:
> are you building the package for python3.7 too? you are showing an ls
> of an extension built for 3.6 while Gard is using 3.7

The rules file[1] does not contain any restriction to any specific
Python3 version and thus it should be build for all available versions.
Am I missing something?

Kind regards

    Andreas.

[1] https://salsa.debian.org/r-pkg-team/r-cran-fastcluster/blob/master/debian/rules

-- 
http://fam-tille.de

[toc] | [prev] | [next] | [standalone]


#920961 — Re: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)

FromPiotr Ożarowski <piotr@debian.org>
Date2018-10-04 15:40 +0200
SubjectRe: dh_python3 --no-ext-rename does not work (Was: Bug#910284: r-cran-fastcluster does not build Python modules for all supported Python versions)
Message-ID<wFc1b-5SJ-1@gated-at.bofh.it>
In reply to#920951
Control: tags -1 -help
Control: tags -1 patch

> I tried to fix the issue reported below by using
>   dh_python3 --no-ext-rename
> (see [1]) but this has no effect and the resulting package just
> contains

well, --no-ext-rename should not be used for public modules (I cannot
imagine a single case where it's needed in dist-packages so I'll probably
disable it for public modules).

The fix:  ;)
========
You're missing python3-all-dev¹ build dependency so pybuild builds only
for the available interpreter, not for all supported ones.

[¹] and python-all-dev to be precise, python-dev covers all 2.X
    interpreters, though
-- 
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web