Can you please clarify what you're trying to do?
take some action on dist folder e.g. create a installer/upload it.
When you say create a installer, do you mean build a distribution for the package?
And when you say upload, do you mean upload to pypi? or somewhere else?
I have found some post-install solution but no post-build
Are these py2app hooks/callbacks?
python setup.py py2app
This is not the convention for how distutils is used. It's usually python setup.py install
.
Answer:
py2app target is a dist folder, which I want to package using my installation script and upload to my website
Edit:
So, you created a package that uses distutils with setup.py.
When you run setup.py it creates distributions for this file and places then them in /dist folder.
Now you want to upload the built file to your website.
To do this, you need a different tool. Something like fabric.
You can use fabric to create a script that would execute the build command and then upload the built files to your server.