#44 Merged at 462422b
Repository
takluyver
Branch
catch-syntaxerror
Repository
anthony_tuininga
Branch
default

Catch SyntaxError when compiling module code

Author
  1. Thomas Kluyver
Reviewers
Description

Some packages, e.g. sympy, have modules which can only be loaded on Python 2 or Python 3, and are invalid syntax on the other version. At present, if cx_Freeze comes across such a module, the exception is unhandled, and it prevents freezing the application (issue #64). This catches the exception and turns it into an ImportError, which is handled at higher levels as meaning that the module wasn't found.

  • Issues #64: freezing scipy as package causes error new

Comments (0)