from setuptools import setup

from downstream_node import __version__

setup(
    name='downstream-node',
    version=__version__,
    packages=['downstream_node'],
    url='',
    license='',
    author='Storj Labs',
    author_email='info@storj.io',
    description='',
    install_requires=[
        'flask',
        'mysql-python',
        'flask-sqlalchemy',
        'heartbeat==0.1.2',
    ],
    dependency_links=[
        'https://github.com/Storj/heartbeat/archive/v0.1.2.tar.gz#egg=heartbeat-0.1.2'
    ],
)

@@ -1,12 +1,23 @@
+import sys%0A
 from setupto
@@ -75,16 +75,295 @@
 sion__%0A%0A
+# Reqirements for all versions of Python%0Ainstall_requires = %5B%0A    'flask',%0A    'pymysql',%0A    'flask-sqlalchemy',%0A    'heartbeat==0.1.2',%0A%5D%0A%0A# Requirements for Python 2%0Aif sys.version_info %3C (3,):%0A    extras = %5B%0A        'mysql-python',%0A    %5D%0A    install_requires.extend(extras)%0A%0A
 setup(%0A 
@@ -580,112 +580,24 @@
 res=
-%5B%0A        'flask',%0A        'mysql-python',%0A        'flask-sqlalchemy',%0A        'heartbeat==0.1.2',%0A    %5D
+install_requires
 ,%0A  
@@ -626,16 +626,20 @@
        '
+git+
 https://
@@ -668,30 +668,19 @@
 beat
-/archive/v0.1.2.tar.gz
+.git@v0.1.2
 #egg

Add proper dependency links and install_requires lines for Py3 and Py2 support