How to install python module as a command line application under windows?
<p>I need to install a python module in the site packages that also will be used as a command line application. Suppose I have a module like:</p>

<p>app.py</p>

<pre><code>def main():
  print 'Dummy message'

if __name__ == '__main__':
    main()
</code></pre>

<p>setup.py</p>

<pre><code> import distutils

 try:
   from setuptools import setup
 except ImportError:
   from distutils.core import setup

 if __name__ == '__main__':

    setup(name = 'dummy',
            version = '1.0',
            packages = ['dummy'],
    )
</code></pre>

<p>Creating the dist by:</p>

<pre><code>    setup.py sdist
</code></pre>

<p>Install:</p>

<pre><code>    setup.py install
</code></pre>

<p>And now I would like to use it as a command line application by opening the command window and typing just:  dummy</p>

<p>Is it possible to create such application under windows without to carry out registering system pat variables and so on ...</p>
