Skip to content
Snippets Groups Projects
Commit f25a1d1a authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

Make the error message about missing extension more clear

(and more verbose in --verbose mode)
parent 418630ae
No related branches found
No related tags found
No related merge requests found
python-defaults (2.6.6-6) UNRELEASED; urgency=low
* Make the error message about missing extension more clear
(and more verbose in --verbose mode)
-- Piotr Ożarowski <piotr@debian.org> Sat, 06 Nov 2010 00:19:39 +0100
python-defaults (2.6.6-5) experimental; urgency=low python-defaults (2.6.6-5) experimental; urgency=low
* pycompile: if installed Python is requested via -V option, use it even if * pycompile: if installed Python is requested via -V option, use it even if
......
...@@ -142,8 +142,13 @@ def share(package, stats, options): ...@@ -142,8 +142,13 @@ def share(package, stats, options):
versions_without_ext = debsorted(set(pubvers) -\ versions_without_ext = debsorted(set(pubvers) -\
stats['public_ext']) stats['public_ext'])
if not versions_without_ext: if not versions_without_ext:
log.error('you most probably have to build extension ' log.error('extension for python%s is missing',
'for python%s.', vrepr(version)) vrepr(version))
log.info('possible solutions are: building extensions '
'for all supported Python versions '
'(`pyversions -vr`); '
'adjusting X-Python-Version field; '
'passing --no-guessing-versions to dh_python2')
exit(12) exit(12)
srcver = versions_without_ext[0] srcver = versions_without_ext[0]
if srcver in stats['public_vers']: if srcver in stats['public_vers']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment