How can I add post-install scripts to easy_install / setuptools / distutils?

It depends on how the user installs your package. If the user actually runs "setup. Py install", it's fairly easy: Just add another subcommand to the install command (say, install_vim), whose run() method will copy the files you want in the places where you want them.

You can add your subcommand to install. Sub_commands, and pass the command into setup().

It depends on how the user installs your package. If the user actually runs "setup. Py install", it's fairly easy: Just add another subcommand to the install command (say, install_vim), whose run() method will copy the files you want in the places where you want them.

You can add your subcommand to install. Sub_commands, and pass the command into setup(). If you want a post-install script in a binary, it depends on the type of binary you are creating.

For example, bdist_rpm, bdist_wininst, and bdist_msi have support for post-install scripts, because the underlying packing formats support post-install scripts. Bdist_egg doesn't support a post-install mechanism by design: bugs.python.org/setuptools/issue41.

As a work-around, you could set the zip_ok option to false so that your project is installed as an unzipped directory, then it will be a little easier for your users to find the editor config file. In distutils2, it will be possible to install things to more directories, including custom directories, and to have pre/post-install/remove hooks.

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