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 <rep...@bugs.python.org>
<http://bugs.python.org/issue31143>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to