Re: dh_python3: file in /usr/lib/python3.12/dist-packages ?

2024-02-24 Thread stefanor
Hi Carles (2024.02.25_00:14:46_+)
> It generates a .deb file with a directory:
> 
> /usr/lib/python3.12/dist-packages/ping3-4.0.4.dist-info/
> 
> With two files there:
> -INSTALLER
> -top_level.txt

If there are files in /usr/lib/python3.*/dist-packages/ after running
dh_python3, it means they differed between python 3.x versions.
So to investigate, diff the files against the ones in
/usr/lib/python3/dist-packages/ and see if you can spot why they are not
matching.

It's probably something non-reproducible in the package's build system.

Stefano

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



dh_python3: file in /usr/lib/python3.12/dist-packages ?

2024-02-24 Thread Carles Pina i Estany

Hi,

CCed Stefano, since I've found a commit that might be relevant that he
wrote.

Via salsa and with dh_python3:

D: dh_python3 dh_python3:179: version: 6.20231223

It generates a .deb file with a directory:

/usr/lib/python3.12/dist-packages/ping3-4.0.4.dist-info/

With two files there:
-INSTALLER
-top_level.txt

Causing lintian to complain via:
-
W: python3-ping3: python-module-in-wrong-location 
usr/lib/python3.12/dist-packages/ping3-4.0.4.dist-info -> 
usr/lib/python3/dist-packages/ping3-4.0.4.dist-info
I: python3-ping3: package-contains-documentation-outside-usr-share-doc 
[usr/lib/python3.12/dist-packages/ping3-4.0.4.dist-info/top_level.txt]
-

I think that this was supposed to be not happening via the next
changelog:
https://salsa.debian.org/python-team/tools/dh-python/-/blob/master/debian/changelog?ref_type=heads#L20

fix:
https://salsa.debian.org/python-team/tools/dh-python/-/commit/c4bfdac892371c7fc3c1cc6a4c28e21b2dd384d9

I'm not familiar with dh_python3 internals at all.

Has anyone had the same problem?

Is it a bug in dh_python3, or should I do something else in the package
that I'm packaging to avoid it? (this might be a red herring of
something else that I've missed!).

Thanks very much,

-- 
Carles Pina i Estany
https://carles.pina.cat


signature.asc
Description: PGP signature