from setuptools import find_packages

import os
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

# Get version and release info, which is all stored in AFQ/version.py
ver_file = os.path.join('AFQ', 'version.py')
with open(ver_file) as f:
    exec(f.read())


REQUIRES = []
with open('requirements.txt') as f:
    l = f.readline()[:-1]
    while l:
        REQUIRES.append(l)
        l = f.readline()[:-1]


opts = dict(name=NAME,
            maintainer=MAINTAINER,
            maintainer_email=MAINTAINER_EMAIL,
            description=DESCRIPTION,
            long_description=LONG_DESCRIPTION,
            url=URL,
            download_url=DOWNLOAD_URL,
            license=LICENSE,
            classifiers=CLASSIFIERS,
            author=AUTHOR,
            author_email=AUTHOR_EMAIL,
            platforms=PLATFORMS,
            version=VERSION,
            packages=find_packages(),
            requires=REQUIRES,
            scripts=SCRIPTS)


if __name__ == '__main__':
    setup(**opts)

from setuptools import find_packages

import os
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

# Get version and release info, which is all stored in AFQ/version.py
ver_file = os.path.join('AFQ', 'version.py')
with open(ver_file) as f:
    exec(f.read())


REQUIRES = []
with open('requirements.txt') as f:
    l = f.readline()[:-1]
    while l:
        REQUIRES.append(l)
        l = f.readline()[:-1]


opts = dict(name=NAME,
            maintainer=MAINTAINER,
            maintainer_email=MAINTAINER_EMAIL,
            description=DESCRIPTION,
            long_description=LONG_DESCRIPTION,
            url=URL,
            download_url=DOWNLOAD_URL,
            license=LICENSE,
            classifiers=CLASSIFIERS,
            author=AUTHOR,
            author_email=AUTHOR_EMAIL,
            platforms=PLATFORMS,
            version=VERSION,
            packages=find_packages(),
            install_requires=REQUIRES,
            requires=REQUIRES,
            scripts=SCRIPTS)


if __name__ == '__main__':
    setup(**opts)

Use install_requires to install the requirements.
Use install_requires to install the requirements.
