do not calculate requirements for data/**.py

Bug #399324 reported by Didier Roche-Tolomelli
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-distutils-extra
Fix Released
High
Martin Pitt

Bug Description

In quickly package, data/ contains some templates (which can be part of python code, C, shell one, or just images/document), which have just to be copied verbatim. (here is an ubuntu-project template, with a dash)

The real code is in bin/ and quickly/ module.
When I try ./setup.py sdist, I get:
ERROR: Python module internal.quicklyutils not found
ERROR: Python module tools not found
ERROR: Python module project_name not found
ERROR: Python module configurationhandler not found
ERROR: Python module tools not found
ERROR: Python module bzrbinding not found
ERROR: Python module configurationhandler not found
ERROR: Python module internal.quicklyutils not found
Traceback (most recent call last):
  File "./setup.py", line 35, in <module>
    <email address hidden>',
  File "/usr/lib/python2.6/dist-packages/DistUtilsExtra/auto.py", line 85, in setup
    distutils.core.setup(**attrs)
  File "/usr/lib/python2.6/distutils/core.py", line 113, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.6/distutils/dist.py", line 258, in __init__
    getattr(self.metadata, "set_" + key)(val)
  File "/usr/lib/python2.6/distutils/dist.py", line 1205, in set_provides
    distutils.versionpredicate.split_provision(v)
  File "/usr/lib/python2.6/distutils/versionpredicate.py", line 160, in split_provision
    raise ValueError("illegal provides specification: %r" % value)
ValueError: illegal provides specification: 'data.templates.ubuntu-project.internal'

So, two strange things:
 - it does not try to copy verbatim the data/ path
 - it does not handle modules in quickly/ (ERROR)

the reproducer is there:
lp:~didrocks/+junk/testcase-distutils-extras

Related branches

Martin Pitt (pitti)
Changed in python-distutils-extra:
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
status: New → In Progress
Changed in python-distutils-extra:
status: In Progress → New
Changed in python-distutils-extra:
status: New → In Progress
Martin Pitt (pitti)
summary: - Can't package everything in data/
+ do not calculate requirements for data/**.py
Revision history for this message
Martin Pitt (pitti) wrote :

r111

Changed in python-distutils-extra:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

python-distutils-extra (2.6) unstable; urgency=low

  * auto.py: Add another test case for having python packages below data/, and
    ignore them in automatic package installation and automatic provides. (The
    previous fix just covered modules). (LP: #399324)
  * auto.py: Point out what happens with file types, and where they are
    installed.

 -- Martin Pitt <email address hidden> Fri, 17 Jul 2009 16:14:05 +0200

Changed in python-distutils-extra:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.