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

pycompile: if installed Python is requested via -V option, use it even if

it's not in a list of supported Python versions (closes: 600529)
parent d94d3972
No related branches found
No related tags found
No related merge requests found
python-defaults (2.6.6-5) experimental; urgency=low
* pycompile: if installed Python is requested via -V option, use it even if
it's not in a list of supported Python versions (closes: 600529)
-- Piotr Ożarowski <piotr@debian.org> Sun, 17 Oct 2010 23:22:22 +0200
python-defaults (2.6.6-4) experimental; urgency=low
* Add python2.7 as a supported Python version.
......
......@@ -235,7 +235,12 @@ multiple times to build up a list of things to exclude.')
'only, please use /usr/share/python/bcep to specify '
'public modules to skip')
versions = get_requested_versions(options.vrange, available=True)
if options.vrange and options.vrange[0] == options.vrange[1] and\
exists("/usr/bin/python%d.%d" % options.vrange[0]):
# specific version requested, use it even if it's not in SUPPORTED
versions = set(options.vrange[:1])
else:
versions = get_requested_versions(options.vrange, available=True)
if not versions:
log.error('Requested versions are not installed')
exit(3)
......
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