
"Martin v. Loewis" wrote:
In my package, I have a few files which are syntactically incorrect in Python 1.5 (since they use Unicode literals). Those files are not used in Python 1.5, but are part of a package, and are used in Python 2.0 and later.
When running install_cmd on Python 1.5, installation aborts when trying to byte-compile files. I know I can invoke install_cmd with --no-compile, but I still would like to generate byte code for all the other files.
So I'm looking for a way to either skip byte-compilation for a single file, to silently procede in case of byte-compilation errors,
I'd suggest to use the latter approach and add an option --skip-syntaxerrors to the install command.
or to exclude a single module of a package from both building and installation.