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

后端 未结 2 1044
無奈伤痛
無奈伤痛 2020-11-29 05:06

I would like to be able to add a hook to my setup.py that will be run post-install (either when easy_install\'ing or when doing python setup.py install).

In my proje

2条回答
  •  悲哀的现实
    2020-11-29 05:50

    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.

提交回复
热议问题