[New-bugs-announce] [issue31143] lib2to3 requires source files for fixes
Todd Schiller
report at bugs.python.org
Tue Aug 8 09:43:40 EDT 2017
New submission from Todd Schiller:
The lib2to3 library doesn't detect/apply any fixes if the source files aren't included with the distribution. See get_all_fix_names at https://github.com/python/cpython/blob/master/Lib/lib2to3/refactor.py#L30
This affects Azure's official Python site extensions [1], which only include bytecode pyc's for the fixes [2].
This results in bad installs when using setuptools to install packages that leverage the use_2to3 flag during the install [3]
[1] https://github.com/Azure/azure-python-siteextensions
[2] https://github.com/Azure/azure-python-siteextensions/issues/14
[3] https://github.com/pypa/setuptools/issues/1120#issuecomment-320769664
----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 299920
nosy: tschiller
priority: normal
severity: normal
status: open
title: lib2to3 requires source files for fixes
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31143>
_______________________________________
More information about the New-bugs-announce
mailing list