old_contents: #! /usr/bin/env python
  
  from __future__ import absolute_import
  
  import pad
  import distutils.core
  
  distutils.core.setup(
      name='SpamPAD',
      version=pad.__version__,
      scripts=[
          'scripts/match.py',
          'scripts/padd.py',
          'scripts/compile.py'
      ],
      packages=[
          'pad',
          'pad.rules',
          'pad.plugins',
          'pad.protocol',
      ],
  )
  
new_contents: #! /usr/bin/env python
  
  from __future__ import absolute_import
  
  import sys
  
  import pad
  import distutils.core
  
  # TODO: adjust this for CPython/PyPy
  with open("requirements/base.txt") as base:
      requirements = base.readlines()
  if sys.version_info.major == 3:
      with open("requirements/python3.txt") as py3:
          requirements.extend(py3.readlines())
  elif sys.version_info.major == 2:
      with open("requirements/python2.txt") as py2:
          requirements.extend(py2.readlines())
  
  with open("requirements/tests.txt") as test:
  test_requirements = test.readlines()
  
  distutils.core.setup(
      name='SpamPAD',
      version=pad.__version__,
      scripts=[
          'scripts/match.py',
          'scripts/padd.py',
          'scripts/compile.py'
      ],
      packages=[
          'pad',
          'pad.rules',
          'pad.plugins',
          'pad.protocol',
      ],
      install_requires=requirements,
      tests_require=test_requirements,
  )
  
subject: Add the dependencies.