How to trigger post-build using setuptools/distutils?

I responded to a similar question yesterday about subclassing distutils.core.Command.

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.

There are probably ways to do this using setuptools or distutils, but they're likely to be pretty hackish. I'd strongly recommend using one of the following tools if you want to do something like this: paver zc. Buildout Paver is probably the easiest to move to as you will probably be able to use all of your existing setup.Py file.

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.

Py2app target is a dist folder, which I want to package using my installation script and upload to my website – Anurag Uniyal Sep 24 '09 at 16:44 I updated my answer. – tarasm Sep 24 '09 at 20:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions