[Bug 1140206] Re: pydist-overrides ignores package names with hyphens
Dmitrijs Ledkovs
launchpad at surgut.co.uk
Thu Oct 3 08:14:58 UTC 2013
** Also affects: python-defaults (Ubuntu Quantal)
Importance: Undecided
Status: New
** Changed in: python-defaults (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1140206
Title:
pydist-overrides ignores package names with hyphens
Status in “python-defaults” package in Ubuntu:
Fix Released
Status in “python-defaults” source package in Quantal:
New
Status in “python-defaults” package in Debian:
Fix Released
Bug description:
This is a bug that has already been found and fixed in Debian. I have
verified this bug exists in Quantal (python-defaults 2.7.3-0ubuntu7).
Because Ubuntu's package is not based on Debian's, this fix has not
made it into Ubuntu releases.
Here is a copy of the Debian bug report:
From: Vangelis Koukis <vkoukis at grnet.gr>
To: submit at bugs.debian.org
Cc: kpap at grnet.gr
Subject: dh_python2 ignores package names with hyphens in
debian/pydist-overrides
Date: Fri, 27 Jan 2012 21:51:19 +0200
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.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657665
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/1140206/+subscriptions
More information about the foundations-bugs
mailing list