from setuptools import setup, Extension, Command
# from pip.req import parse_requirements
# import pip.download

# parse_requirements() returns generator of pip.req.InstallRequirement objects
# install_reqs = parse_requirements("requirements2.txt",
# session=pip.download.PipSession())

# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
# reqs = [str(ir.req) for ir in install_reqs]

#execfile('worldengine/version.py')
exec(open('worldengine/version.py').read())

config = {
    'name': 'worldengine',
    'description': 'World generator simulating plate tectonics, erosion, etc.',
    'author': 'Federico Tomassetti, Bret Curtis',
    'author_email': 'f.tomassetti@gmail.com, psi29a@gmail.com',
    'url': 'http://github.com/Mindwerks/worldengine',
    'download_url': 'https://github.com/Mindwerks/worldengine/releases',
    'version': __version__,
    'packages': ['worldengine', 'worldengine.cli', 'worldengine.simulations',
                 'worldengine.protobuf'],
    'entry_points': {
        'console_scripts': ['worldengine=worldengine.cli.main:main'],
    },
    'install_requires': ['Pillow==2.8.2', 'PyPlatec==1.3.1.post1',
                         'argparse==1.2.1', 'noise==1.2.2', 'protobuf==3.0.0a3',
                         'numpy==1.9.2'],
    'license': 'MIT License'
}

setup(**config)

from setuptools import setup, Extension, Command
# from pip.req import parse_requirements
# import pip.download

# parse_requirements() returns generator of pip.req.InstallRequirement objects
# install_reqs = parse_requirements("requirements2.txt",
# session=pip.download.PipSession())

# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
# reqs = [str(ir.req) for ir in install_reqs]

exec(open('worldengine/version.py').read())

config = {
    'name': 'worldengine',
    'description': 'World generator simulating plate tectonics, erosion, etc.',
    'author': 'Federico Tomassetti, Bret Curtis',
    'author_email': 'f.tomassetti@gmail.com, psi29a@gmail.com',
    'url': 'http://github.com/Mindwerks/worldengine',
    'download_url': 'https://github.com/Mindwerks/worldengine/releases',
    'version': __version__,
    'packages': ['worldengine', 'worldengine.cli', 'worldengine.simulations',
                 'worldengine.protobuf'],
    'entry_points': {
        'console_scripts': ['worldengine=worldengine.cli.main:main'],
    },
    'install_requires': ['Pillow==2.8.2', 'PyPlatec==1.3.1.post1',
                         'argparse==1.2.1', 'noise==1.2.2', 'protobuf>=2.6.0',
                         'numpy==1.9.2'],
    'license': 'MIT License'
}

setup(**config)

Allow old protobuf-versions for Python 2 and new ones for Python 3.