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

pycompile: `pycompile $DESTDIR/usr/lib/python*` will recognize public

site-packages directories and use the right interpreter instead of raising
KeyError
parent f5922edb
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,9 @@ python-defaults (2.6.6-6) UNRELEASED; urgency=low
* dh_python2: install files listed in debian/package.pyinstall file
as public modules for all requested Python versions (use dh_install's
package.install files for private modules)
* pycompile: `pycompile $DESTDIR/usr/lib/python*` will recognize public
site-packages directories and use the right interpreter instead of raising
KeyError
-- Piotr Ożarowski <piotr@debian.org> Sun, 21 Nov 2010 23:49:32 +0100
......
......@@ -191,7 +191,13 @@ def compile(files, versions, e_patterns=None):
if exists("%sc" % fn):
continue
for version in versions_to_compile:
pipe = STDINS[version]
try:
pipe = STDINS[version]
except KeyError:
# `pycompile /usr/lib/` invoked, add missing worker
pipe = py_compile(version, WORKERS)
pipe.next()
STDINS[version] = pipe
pipe.send(fn)
......
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