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


Groups > linux.debian.maint.python > #10693 > unrolled thread

How to convince ‘dh_python3’ to handle ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’ correctly?

Started byBen Finney <bignose@debian.org>
First post2018-07-15 09:00 +0200
Last post2018-07-16 10:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  How to convince ‘dh_python3’ to handle  ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’ correctly? Ben Finney <bignose@debian.org> - 2018-07-15 09:00 +0200
    Re: How to convince ‘dh_python3’ to handle ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’ correctly? Piotr Ożarowski <piotr@debian.org> - 2018-07-16 10:40 +0200

#10693 — How to convince ‘dh_python3’ to handle ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’ correctly?

FromBen Finney <bignose@debian.org>
Date2018-07-15 09:00 +0200
SubjectHow to convince ‘dh_python3’ to handle ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’ correctly?
Message-ID<wbJaF-3oP-1@gated-at.bofh.it>
Howdy all,

The ‘python-coverage’ source package has some special handling of build
and install rules. How can I convince the packaging tools to correctly
handle ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’?

This was brought to my attention by the recent addition of the Lintian
tag “python-module-in-wrong-location”:

    W: python3-coverage: python-module-in-wrong-location usr/lib/python3.7/dist-packages/coverage-4.5.1.egg-info/ usr/lib/python3/dist-packages/coverage-4.5.1.egg-info/
    N:
    N:    The package installs a Python module or debug information for a Python
    N:    module in the wrong location for the given version of Python.
    N:
    N:    dh_python3 can be used to fix this for Python 3 modules.
    N:
    N:    Refer to Debian Python Policy section 2.5 (Module Path) and
    N:    https://bugs.debian.org/576012 for details.
    N:
    N:    Severity: normal, Certainty: possible
    N:
    N:    Check: files, Type: binary, udeb
    N:
    W: python3-coverage: python-module-in-wrong-location usr/lib/python3.7/dist-packages/coverage-4.5.1.egg-info/entry_points.txt usr/lib/python3/dist-packages/coverage-4.5.1.egg-info/entry_points.txt

Which particular of those files are right or wrong, according to the
Debian Python Policy §2.5?

* usr/lib/python3.7/dist-packages/coverage-4.5.1.egg-info/
* usr/lib/python3/dist-packages/coverage-4.5.1.egg-info/
* usr/lib/python3.7/dist-packages/coverage-4.5.1.egg-info/entry_points.txt
* usr/lib/python3/dist-packages/coverage-4.5.1.egg-info/entry_points.txt

How should I change the package's ‘debian/rules’ to conform to Debian
Python Policy §2.5?

-- 
 \        “I went to the hardware store and bought some used paint. It |
  `\                      was in the shape of a house.” —Steven Wright |
_o__)                                                                  |
Ben Finney

[toc] | [next] | [standalone]


#10700 — Re: How to convince ‘dh_python3’ to handle ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’ correctly?

FromPiotr Ożarowski <piotr@debian.org>
Date2018-07-16 10:40 +0200
SubjectRe: How to convince ‘dh_python3’ to handle ‘/usr/lib/python3.7/dist-packages/foo.egg-info/’ correctly?
Message-ID<wc7d0-1uE-5@gated-at.bofh.it>
In reply to#10693
[Ben Finney, 2018-07-15]
> Which particular of those files are right or wrong, according to the
> Debian Python Policy §2.5?
> 
> * usr/lib/python3.7/dist-packages/coverage-4.5.1.egg-info/
> * usr/lib/python3/dist-packages/coverage-4.5.1.egg-info/
> * usr/lib/python3.7/dist-packages/coverage-4.5.1.egg-info/entry_points.txt
> * usr/lib/python3/dist-packages/coverage-4.5.1.egg-info/entry_points.txt
> 
> How should I change the package's ‘debian/rules’ to conform to Debian
> Python Policy §2.5?

my guess is: these two entry_points.txt files are not the same and thus
dh_python3 refused to move the second one to the shared directory.
-- 
GPG: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web