title: python install wheel leads to import error
body: <p>I'd like to make a wheel binary distribution, intstall it and then import it in python. My steps are</p>
  
  <ul>
  <li>I first create the wheel: <code>python ./my_package/setup.py bdist_wheel</code></li>
  <li>I install the wheel: <code>pip install ./dist/*.whl</code></li>
  <li>I try to import the package: <code>python -c"import my_package"</code></li>
  </ul>
  
  <p>This leads to the error:
  <code>ImportError: No module named 'my_package'</code></p>
  
  <p>Also, when I do <code>pip list</code>, the <code>my_package</code> is listed.
  However, when I run <code>which my_packge</code>, nothing is shown.</p>
  
  <p>When I run <code>pip install ./my_package/</code> everything works as expected. </p>
  
  <p>How would I correctly build and install a wheel?</p>
  
  <p>python version 3.5
  pip version 10.1
  wheel version 0.31.1</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>When I look at the files inside my_package-1.0.0.dist-info, there is an unexpected entry in <code>top_level.txt</code>. It is the name of the folder where I ran 
  <code>python ./my_package/setup.py bdist_wheel</code> in. I believe my <code>setup.py</code> is broken.</p>
  
  <p><strong>UPDATE WITH REGARDS TO ACCEPTED ANSWER:</strong> 
  I accepted the answer below. Yet, I think it is better to simply <code>cd</code> into the package directory. Changing to a different directory as suggested below leads to unexpected behavior when using the <code>-d</code> flag, i.e. the target directory where to save the wheel. This would be relative to the directory specified in the setup.py file. </p>