JuliaLang/julia — pull request #1958 by aviks (2013-01-09 17:48:22+00:00)
Title: RFC: Add a post install hook for packages

This change:

Loads a file named postinstall.jl from within the ./src/ directory of the package. The package directory is the cwd when this file is loaded.

The file is also loaded from within an anonymous module to ensure that the main module context is not corrupted. I think this is a good idea to ensure that running a module just after install is no different from running it later. Of course, in a dynamic language like Julia its no guarantee, but nonetheless, its some protection.

Let me know what you think. My metaprogramming chops aren't the best.