Package: python Version: 2.6.6-3+squeeze6 Severity: normal Tags: patch Hello,
dh_python2 parses debian/pydist-overrides incorrectly and ignores lines referring to packages with hyphens in their names, which seem to be totally valid names for python distributions, e.g., http://pypi.python.org/pypi/evasion-common/1.0.1 http://pypi.python.org/pypi/ls-thrift-py-hadoop/1-cdh3u2 So the following line: My-package python-mypackage is ignored. Also see, http://docs.python.org/distutils/examples.html#pure-python-distribution-by-module which mentions the hyphen as an acceptable character: "However, the distribution name is used to generate filenames, so you should stick to letters, digits, underscores, and hyphens." The problem seems to be with the definition of PYDIST_RE in python-defaults-{2.6.6,2.7.2}/debpython/pydist.py: PYDIST_RE = re.compile(r""" (?P<name>[A-Za-z][A-Za-z0-9_.]*) # Python distribution name in which the name group is not allowed to contain hyphens. Adding '\-' in the last bracket expression seems to be a fix for the problem. -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (990, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/16 CPU cores) Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python depends on: ii python-minimal 2.6.6-3+squeeze6 minimal subset of the Python langu ii python2.6 2.6.6-8+b1 An interactive high-level object-o python recommends no packages. Versions of packages python suggests: ii python-doc 2.6.6-3+squeeze6 documentation for the high-level o pn python-profiler <none> (no description available) ii python-tk 2.6.6-1 Tkinter - Writing Tk applications -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org