Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to trigger post-build using setuptools/distutils

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

like image 890
Anurag Uniyal Avatar asked Sep 14 '09 13:09

Anurag Uniyal


1 Answers

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.

like image 194
jathanism Avatar answered Oct 16 '22 03:10

jathanism