How to make globally callable python program?
<p>I wrote a module and created a setup.py to install the module:</p>

<pre><code>from setuptools import setup, find_packages

setup(
    name='mymodule',
    version='0.1',
    packages=find_packages(exclude=['test', 'test.*']),
    include_package_data=True,
    platforms='any',
    install_requires=[
        'lxml==3.3.5',
        'Pillow==3.0.0',
        'requests==2.2.1',
        'xmltodict==0.10.1',
        'pdfrw==0.2',
        'python-dotenv==0.4.0',
        'boto==2.39.0'
    ],
)
</code></pre>

<p>In the same module I also wrote a command line interface for the module using <a href="https://docs.python.org/2/library/getopt.html" rel="nofollow">getopt</a>. I want to make this command line interface globally available so that any user on the system can do things like:</p>

<pre><code>$ mycliprogram -i inputfile.xml -o outputfile.txt
</code></pre>

<p>Does anybody know how I can include <code>mycliprogram.py</code> in setup.py so that anybody on the system can use it from the command line? </p>