dh_python3 causes error if private modules include no .so files

Bug #731271 reported by IRIE Shinsuke
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3-defaults (Debian)
Fix Released
Unknown
python3-defaults (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm testing python3 (3.2~rc1-2) imported from Debian experimental.

I tried building deb package which requires Python 3.2 and has private modules (.py files), but received error as follows:

dh_python3 -V 3.2-3.3 /usr/share/blender/2.56/scripts
D: dh_python3:359: argv: ['/usr/bin/dh_python3', '-V', '3.2-3.3', '/usr/share/blender/2.56/scripts']
D: dh_python3:360: options: {'recommends': None, 'verbose': False, 'package': None, 'regexpr': None, 'guess_deps': True, 'skip_private': False, 'O': None, 'suggests': None, 'depends': None, 'vrange': ((3, 2), (3, 3)), 'no_package': None, 'arch': None}
D: dh_python3:361: args: ['/usr/share/blender/2.56/scripts']
D: dh_python3:371: processing package blender2.5-gnome-support...
D: dh_python3:285: package blender2.5-gnome-support details = {'compile': False, 'requires.txt': set(), 'shebangs': set(), 'private_dirs': {}, 'ext': set()}
D: dh_python3:371: processing package blender2.5...
D: dh_python3:285: package blender2.5 details = {'compile': False, 'requires.txt': set(), 'shebangs': set(), 'private_dirs': {'/usr/share/blender/2.56/scripts': {'compile': True}}, 'ext': set()}
Traceback (most recent call last):
  File "/usr/bin/dh_python3", line 438, in <module>
    main()
  File "/usr/bin/dh_python3", line 378, in main
    dependencies.parse(stats, options)
  File "/usr/share/python3/debpython/depends.py", line 111, in parse
    if details['ext']:
KeyError: 'ext'
make[1]: *** [override_dh_python3] Error 1
make[1]: Leaving directory `/tmp/buildd/blender2.5-2.56.1+svn35400'
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

I have already reported this bug at Debian bug tracker and posted a patch.

Tags: patch
Revision history for this message
IRIE Shinsuke (irie) wrote :
Changed in python3-defaults (Debian):
status: Unknown → New
Revision history for this message
Scott Kitterman (kitterman) wrote :

This is fixed in the latest python3-defaults just sync'ed from Debian.

Changed in python3-defaults (Ubuntu):
status: New → Fix Released
Changed in python3-defaults (Debian):
status: New → 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.