[New-bugs-announce] [issue10530] distutils2 should allow the installing of python files with invalid syntax

Michael Foord report at bugs.python.org
Thu Nov 25 16:16:55 CET 2010


New submission from Michael Foord <michael at voidspace.org.uk>:

As discussed with tarek. It shouldn't be up to distutils2 to decide whether or not a Python file that has been included in the package should be installed or not if it is included in the set of files the developer has *asked* to be installed.

Possible use cases include deliberately broken modules for testing or an ast-transformer import hook that works with otherwise-invalid syntax files. (e.g. transforming the with statement to work on Python 2.4)

Allowing for the install of invalid syntax files will require ignoring SyntaxErrors during bytecode compile phase. A --strict option could be provided to allow these to remain an error.

----------
assignee: tarek
components: Distutils2
messages: 122372
nosy: eric.araujo, michael.foord, tarek
priority: normal
severity: normal
status: open
title: distutils2 should allow the installing of python files with invalid syntax

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10530>
_______________________________________


More information about the New-bugs-announce mailing list