Menu

#1 data_files options should not be required for setup script

New
nobody
None
Medium
Defect
2009-10-27
2009-10-27
Anonymous
No

Originally created by: fabricioepa@gmail.com

What steps will reproduce the problem?
1. Run any setup.py script without the "data_files" option

What is the expected output? What do you see instead?
The option "data_files" should not be required, but the script show the
following error:

  File "setup.py", line 52, in <module>
    scripts = scripts
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/distutils/command/bdist_maemo.py", line 99, in
run
    for theDir, theFiles in self.distribution.data_files:
TypeError: 'NoneType' object is not iterable

What version of the product are you using? On what operating system?

N810/OSS

Please provide any additional information below.

If you add the line:

data_files=[]

Everything works fine. See the full bug description: https://garage.maemo.org/tracker/?
func=detail&aid=4680&group_id=247&atid=989

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.