title: Can distutils install the module/package as an executable script?
body: <p>I'm using distutils.core.setup for the first time. I got it to install my module in /usr/lib/python/site-packages.</p>
  
  <p>If I run python from any directory and do <code>import my_module</code> it all works great.</p>
  
  <p>However, I need to run my module as script. It's not intended as a library, but rather as an application. If I run from terminal <code>python my_module</code> it does not find the file.</p>
  
  <p>I wanted to make an executable script that will run my module and put a sym link to it in /usr/bin, but that seems like a hacky way to solve this. I presume distutils has something to install your module as an executable script, except I wasn't able to find it. Could someone please point me to an example or doc file for this?</p>
  
  <p>Edit: Also, if this is not the right way to distribute a python application, what should I use instead?</p>