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

pycompile: fix -O option

parent af523b71
No related branches found
No related tags found
No related merge requests found
python-defaults (2.7.2-10) unstable; urgency=low
* For argparse eggs, generate dependencies of the form
[ Matthias Klose ]
* dh_python2: For argparse eggs, generate dependencies of the form
"python (>= 2.7) | python-argparse". Closes: #653644, #657119.
* Regenerate pydist/dist_fallback.
[ Piotr Ożarowski ]
* pycompile: fix -O option
-- Matthias Klose <doko@debian.org> Tue, 24 Jan 2012 11:49:24 +0100
python-defaults (2.7.2-9) unstable; urgency=low
......
......@@ -132,7 +132,7 @@ def py_compile(version, optimize, workers):
if not isinstance(version, basestring):
version = vrepr(version)
cmd = "/usr/bin/python%s%s -m py_compile -" \
% (version, '' if (__debug__ or not optimize) else ' -O')
% (version, ' -O' if optimize else '')
process = Popen(cmd, bufsize=1, shell=True,
stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
workers[version] = process # keep the reference for .communicate()
......
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