customizing py2exe by subclassing¶
Let's say you're not entirely happy with one detail in the build process of py2exe. That may be because you want to filter the list of files that it collects or something else.
Make subclass of py2exe and override the methods you want to change:
Then in the setup() call we need to tell Distutils that it should use our class:
In fact, that mechanism allows to install any Distutils command.