1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #106 wontfix

Please support --post-install for easy_install

dsdale24
created an issue

distutils allows a post-install script to be declared, which is often used by windows installers to create entries in the start menu. This feature was not implemented in setuptools (see http://bugs.python.org/setuptools/issue41).

I understand there are plans to deprecate easy_install in favor of pip. It may be possible to run post-install routines for source distributions with pip, by implementing custom install command classes, but pip does not support setuptools extras (install foo[bar]) and is currently only compatible with source distributions. Plus the pip documentation is not encouraging regarding support on windows. I am not familiar with all the issues regarding implementing this feature in Distribute, but it must be possible since Enstaller supports it.

Comments (6)

  1. Tarek Ziadé repo owner
    • changed milestone to 0.7.0

    distutils allows a post-install script to be declared, which is often used by windows installers to create entries in the start menu.

    That's only in the bdist_wininst command. Why can't you use that command ?

  2. dsdale24 reporter

    A colleague just wrote and asked me how to do something related. He has a 48 MB file that he wants to compress (it is very compressible) and ship with his distribution, and he wants to expand it again during the installation. I think this is another case where the ability to define post-installation procedures would be necessary.

  3. dsdale24 reporter

    Please scratch that last comment. I guess eggs are probably zipped for delivery just like source distributions and windows installers, so he wouldn't gain anything by compressing the individual file.

  4. Log in to comment