title: Custom distutils commands
body: <p>I have a library called "example" that I'm installing into my global site-packages directory.  However, I'd like to be able to install two versions, one for production and one for testing (I have a web application and other things that are versioned this way).</p>
  
  <p>Is there a way to specify, say "python setup.py stage" that will not only install a different egg into site-packages, but also rename the module from "example" to "example_stage" or something similar?</p>
  
  <p>If distutils cannot do this, is there any other tool that can?</p>