I am building an application using py2app/setuptools, so once it creates application bundle I want to take some action on dist folder e.g. create a installer/upload it.
Is there a way? I have found some post-install solution but no post-build
Alternatively I can call 'python setup.py py2app' from my own script and do that, but it would be better if it can be done in setup.py
I responded to a similar question yesterday about subclassing distutils.core.Command.
The core of it is that by doing this you are able to precisely control the behavior of each stage of the preparation process, and are able to create your own commands that can do pretty much anything you can think of.
Please have a look at that response as I think it will help you out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With