title: What do I need to do to my python code to get it to be a module?
body: <p>Can someone tell me what I'm doing wrong to package this as a module: 
  <a href="https://github.com/xamox/python-zxing" rel="nofollow">https://github.com/xamox/python-zxing</a>.  </p>
  
  <p>My setup.py is as follows:</p>
  
  <pre><code>#!/usr/bin/env python
  
  from distutils.core import setup
  
  setup(
      name='zxing',
      version='0.1',
      description="wrapper for zebra crossing (zxing) barcode library",
      url='http://simplecv.org',
      author='Ingenuitas',
      author_email='public.relations@ingenuitas.com',
      packages=['zxing'],
  )
  </code></pre>
  
  <p>I am trying to do "import zxing". I do setup.py install, puts it in /usr/local/lib/python2.7/dist-packages/, but import zxing doesn't work.</p>
  
  <p>I get the following error:</p>
  
  <pre><code>In [1]: import zxing.zxing
  ---------------------------------------------------------------------------
  ResolutionError                           Traceback (most recent call last)
  /home/xamox/&lt;ipython-input-1-9ff7d0755c55&gt; in &lt;module&gt;()
  ----&gt; 1 import zxing.zxing
  
  /usr/local/bin/zxing.py in &lt;module&gt;()
        3 __requires__ = 'zxing==0.1'
        4 import pkg_resources
  ----&gt; 5 pkg_resources.run_script('zxing==0.1', 'zxing.py')
  
  /usr/lib/python2.7/dist-packages/pkg_resources.pyc in run_script(self, requires, script_name)
      465         ns.clear()
      466         ns['__name__'] = name
  --&gt; 467         self.require(requires)[0].run_script(script_name, ns)
      468 
      469 
  
  /usr/lib/python2.7/dist-packages/pkg_resources.pyc in run_script(self, script_name, namespace)
     1192         script = 'scripts/'+script_name
     1193         if not self.has_metadata(script):
  -&gt; 1194             raise ResolutionError("No script named %r" % script_name)
     1195         script_text = self.get_metadata(script).replace('\r\n','\n')
     1196         script_text = script_text.replace('\r','\n')
  
  ResolutionError: No script named 'zxing.py'
  </code></pre>