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)

2018-10-04 Thread Piotr Ożarowski
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



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)

2018-10-04 Thread Andreas Tille
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



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)

2018-10-04 Thread Sandro Tosi
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  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 "", line 1, in 
> >File "/usr/lib/python3/dist-packages/fastcluster.py", line 37, in 
> > 
> >  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



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)

2018-10-04 Thread Andreas Tille
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 "", line 1, in 
>File "/usr/lib/python3/dist-packages/fastcluster.py", line 37, in 
>  from _fastcluster import linkage_wrap, linkage_vector_wrap
>  ModuleNotFoundError: No module named '_fastcluster'

-- 
http://fam-tille.de



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

2018-10-04 Thread Gard Spreemann
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 "", line 1, in 
   File "/usr/lib/python3/dist-packages/fastcluster.py", line 37, in 
 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