← Back to team overview

touch-packages team mailing list archive

[Bug 1140206] Re: pydist-overrides ignores package names with hyphens

 

quantal has seen the end of its life and is no longer receiving any
updates. Marking the quantal task for this ticket as "Won't Fix".

** Changed in: python-defaults (Ubuntu Quantal)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  Won't Fix
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@xxxxxxxx>
  To: submit@xxxxxxxxxxxxxxx
  Cc: kpap@xxxxxxxx
  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