title: pip install from a subdirectory of git repo in non-editable mode
body: <p>The following works fine:</p>
  
  <pre><code>user@host ~/test&gt; pip install -e 'git+http://git.mydomain.com/project.git#egg=project-sdk&amp;subdirectory=sdk/python'
  </code></pre>
  
  <p>But the following fails:</p>
  
  <pre><code>user@host ~/test&gt; pip install 'git+http://git.mydomain.com/project.git#egg=project-sdk&amp;subdirectory=sdk/python'
  Collecting project from git+http://git.mydomain.com/project.git#egg=project-sdk&amp;subdirectory=sdk/python
  Cloning git+http://git.mydomain.com/project.git to /tmp/160806751.tmpdir/pip-build-XR8vJn/project-sdk
  remote: Counting objects: 180, done.
  remote: Compressing objects: 100% (135/135), done.
  remote: Total 180 (delta 46), reused 0 (delta 0)
  Receiving objects: 100% (180/180), 52.71 KiB | 0 bytes/s, done.
  Resolving deltas: 100% (46/46), done.
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
        File "&lt;string&gt;", line 18, in &lt;module&gt;
      IOError: [Errno 2] No such file or directory: '/tmp/160806751.tmpdir/pip-build-XR8vJn/project-sdk/setup.py'
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /tmp/160806751.tmpdir/pip-build-XR8vJn/project-sdk
  </code></pre>
  
  <p>I want to install some packages directly from a git repo - they are not available on PyPI. Since I am not going to edit them, there is no point in using the editable mode. The problem is that the root of the git contains multiple directories, not all of which contain python code. So it doesn't make sense to have the setup.py in the root directory.</p>
  
  <p>I am using pip 7.1.2.</p>
  
  <pre><code>user@host ~/test&gt; pip --version
  pip 7.1.2 from /home/user/test/venv/lib/python2.7/site-packages (python 2.7)
  user@host ~/test&gt; 
  </code></pre>
  
  <p>So the question is - is there a way to install a package using pip from a subdirectory of a git repository <strong>in non-editable mode</strong>?</p>
  
  <p>Before someone points out, <a href="https://stackoverflow.com/questions/13566200/install-from-a-git-subdirectory-with-pip">this</a> question doesn't contain the answer to how to install in <strong>non-editable</strong> mode.</p>