[issue25303] py_compile disregards PYTHONDONTWRITEBYTECODE and -B
Pavel Roskin
report at bugs.python.org
Fri Oct 2 20:52:11 EDT 2015
New submission from Pavel Roskin:
$ echo "'''Simple script'''" >simple-script
$ PYTHONDONTWRITEBYTECODE=1 python3 -B -m py_compile simple-script
$ ls __pycache__
simple-scriptcpython-35.pyc
py_compile should recognize when the user doesn't want the bytecode to be produced. Otherwise, it's not usable in makefiles for a quick code check.
See also http://stackoverflow.com/questions/4284313/
----------
components: Library (Lib)
messages: 252185
nosy: proski
priority: normal
severity: normal
status: open
title: py_compile disregards PYTHONDONTWRITEBYTECODE and -B
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25303>
_______________________________________
More information about the Python-bugs-list
mailing list