title: How to write setup.py to include a Git repository as a dependency
body: <p>I am trying to write <code>setup.py</code> for my package. My package needs to specify a dependency on another Git repository.</p>
  <p>This is what I have so far:</p>
  <pre><code>from setuptools import setup, find_packages
  
  setup(
      name='abc',
      packages=find_packages(),
      url='https://github.abc.com/abc/myabc',
      description='This is a description for abc',
      long_description=open('README.md').read(),
      install_requires=[
          &quot;requests==2.7.0&quot;,
          &quot;SomePrivateLib&gt;=0.1.0&quot;,
          ],
      dependency_links = [
       &quot;git+git://github.abc.com/abc/SomePrivateLib.git#egg=SomePrivateLib&quot;,
      ],
      include_package_data=True,
  )
  </code></pre>
  <p>When I run:</p>
  <pre><code>pip install -e https://github.abc.com/abc/myabc.git#egg=analyse
  </code></pre>
  <p>I get</p>
  <blockquote>
  <p>Could not find a version that satisfies the requirement
  SomePrivateLib&gt;=0.1.0 (from analyse) (from versions: ) No matching
  distribution found for SomePrivateLib&gt;=0.1.0 (from analyse)</p>
  </blockquote>
  <p>What am I doing wrong?</p>