#! /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',
    ],
)

@@ -57,16 +57,28 @@
 import%0A%0A
+import sys%0A%0A
 import p
@@ -80,16 +80,16 @@
 ort pad%0A
-
 import d
@@ -103,16 +103,473 @@
 s.core%0A%0A
+# TODO: adjust this for CPython/PyPy%0Awith open(%22requirements/base.txt%22) as base:%0A    requirements = base.readlines()%0Aif sys.version_info.major == 3:%0A    with open(%22requirements/python3.txt%22) as py3:%0A        requirements.extend(py3.readlines())%0Aelif sys.version_info.major == 2:%0A    with open(%22requirements/python2.txt%22) as py2:%0A        requirements.extend(py2.readlines())%0A%0Awith open(%22requirements/tests.txt%22) as test:%0Atest_requirements = test.readlines()%0A%0A
 distutil
@@ -834,17 +834,89 @@
 tocol',%0A
-
     %5D,%0A
+    install_requires=requirements,%0A    tests_require=test_requirements,%0A
 )%0A

Add the dependencies.