takluyver / pynsist

Build Windows installers for Python applications
https://pynsist.readthedocs.io/
Other
896 stars 119 forks source link

Byte compile packages on installation. #17

Closed takluyver closed 10 years ago

takluyver commented 10 years ago

On Windows 7, Program Files is not user writable, so the .pyc files cannot be generated, which will slow down startup.

The compileall module addresses precisely this case - we should run it on the pkgs directory during installation.

takluyver commented 10 years ago

Commit 25b4c21b62 adds this, but it now pops up a console window to run compileall, which seems rather ugly. I've filed a Python issue to make it possible to run compileall under pyw, which doesn't open a command window. But in the meantime, it looks like we can use nsExec, a plugin which appears to be shipped as part of a regular NSIS installation, to run a console application while hiding the console.