title: pip install is not working from git but works locally
body: <p>I had one module in the root of the project, as explained <a href="https://docs.python.org/2/distutils/introduction.html#distutils-simple-example" rel="nofollow noreferrer">in docs (simple example)</a>. It worked well for both, installed from local sources and directly from git (i mean, pip install . and pip install git+<a href="https://url/to/repository" rel="nofollow noreferrer">https://url/to/repository</a>).</p>
  
  <p>Now I added two new modules, also in the root of the project, so my setup now looks like this:</p>
  
  <pre><code>from distutils.core import setup
  setup(name='foo',
    version='1.0',
    py_modules=['foo', 'foo1', 'foo2'],
    url='https://url/to/repository'
    )
  </code></pre>
  
  <p>Take into account that name and one of the modules are both foo.
  Now I'm able to install it from sources with <code>pip install .</code> and then use it as <code>import foo</code> or <code>import foo1</code>. If I try <code>pip freeze</code> it shows foo as installed.</p>
  
  <p>However, when I run <code>pip install git+https://url/to/repository</code> everything runs normally. It finishes. If I run <code>pip freeze</code>, <code>foo</code> is displayed as if it were correctly installed, but when I do <code>import foo</code> or <code>import foo1</code>, it fails.</p>
  
  <p>Any idea of what is wrong? I'm using python3 and all those commands are run inside a virtualenv. I'm using bitbucket as git repository.</p>
  
  <p><strong>UPDATE I</strong></p>
  
  <p>Well, I created a minimal example in a public repo and it works all right from both, pip install . and pip install git+<a href="https://url/to/repo" rel="nofollow noreferrer">https://url/to/repo</a>.</p>
  
  <p>As far as I see, the main difference between the real repo and the foo is that foo does not have a readme, <strong>init</strong>.py, requirements and does not have any dependence (the real repo has some external dependencies, indicated in its setup.py as install_requires, and some modules depends on the others (as if foo1 and foo2 depends on foo)). foo project's structure is like that:</p>
  
  <pre><code>root
  +----foo.py
  +----foo1.py
  +----foo2.py
  +----setup.py      
  </code></pre>
  
  <p>setup.py is the following:</p>
  
  <pre><code>from distutils.core import setup
  setup(name='foo',
  version='2.0',
  py_modules=['foo', 'foo1', 'foo2'],
  url='https://bitbucket.org/idatha/test_pip/overview'
  )
  </code></pre>
  
  <p>and foo, foo1 and foo2 are all the same, except for their names:</p>
  
  <pre><code>class foo1():
      def __init__(self, number):
          self.number = number
  
      def add(self, b):
          return self.number + b
  </code></pre>
  
  <p><strong>UPDATE II</strong></p>
  
  <p>I installed again the previous working version from last commit. It worked all right. In this case, sources were copied under <code>.env/lib/python3.5/site-packages/foo.py</code> however, when I install the new version (with <code>foo1.py</code> and <code>foo2.py</code>) it does not copy anything to this directory, no mather if I install it from local source or directly from git</p>