old_contents: #!/usr/bin/python
  import re
  from setuptools import setup, find_packages
  
  from mutant import __version__
  
  
  github_url = 'https://github.com/charettes/django-mutant'
  long_desc = open('README.md').read()
  
  LINK_REQUIREMENT = re.compile(r'^(?P<link>https?://.+)#egg=(?P<package>.+)$')
  
  install_requires = []
  dependency_links = []
  
  for requirement in (l.strip() for l in open('requirements/stable.txt')):
      match = LINK_REQUIREMENT.match(requirement)
      if match:
          install_requires.append(match.group('package'))
          dependency_links.append(match.group('link'))
      else:
          install_requires.append(requirement)
  
  setup(
      name='django-mutant',
      version='.'.join(str(v) for v in __version__),
      description='Dynamic model definition and alteration (evolving schemas)',
      long_description=open('README.md').read(),
      url=github_url,
      author='Simon Charette',
      author_email='charette.s@gmail.com',
      install_requires=install_requires,
      dependency_links=dependency_links,
      packages=find_packages(exclude=['tests']),
      include_package_data=True,
      license='MIT License',
      classifiers=[
          'Development Status :: 1 - Planning',
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Software Development :: Libraries :: Python Modules'
      ],
  )
  
new_contents: #!/usr/bin/python
  import re
  from setuptools import setup, find_packages
  
  from mutant import __version__
  
  github_url = 'https://github.com/charettes/django-mutant'
  long_desc = open('README.md').read()
  
  LINK_REQUIREMENT = re.compile(r'^(?P<link>https://.+#egg=(?P<package>.+)-(?P<version>\d(?:\.\d)*))$')
  
  install_requires = []
  dependency_links = []
  
  for requirement in (l.strip() for l in open('requirements/stable.txt')):
      match = LINK_REQUIREMENT.match(requirement)
      if match:
          install_requires.append("%(package)s==%(version)s" % match.groupdict())
          dependency_links.append(match.group('link'))
      else:
          install_requires.append(requirement)
  
  setup(
      name='django-mutant',
      version='.'.join(str(v) for v in __version__),
      description='Dynamic model definition and alteration (evolving schemas)',
      long_description=open('README.md').read(),
      url=github_url,
      author='Simon Charette',
      author_email='charette.s@gmail.com',
      install_requires=install_requires,
      dependency_links=dependency_links,
      packages=find_packages(exclude=['tests']),
      include_package_data=True,
      license='MIT License',
      classifiers=[
          'Development Status :: 1 - Planning',
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Software Development :: Libraries :: Python Modules'
      ],
  )
  
subject: Make sure the full requirement link is added to the setup dependency links