New submission from Michael Foord <mich...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue10530> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com