#!/usr/bin/env python

setup_args = {}

try:
    from setuptools import setup
    from setuptools.extension import Extension
    setup_args.update(install_requires=[
        'Cython >= 0.11',
        'numpy >= 1.5.1',
        #'scipy >= 0.6',
    ])
except ImportError:
    from distutils.core import setup
    from distutils.extension import Extension

setup_args.update(
    name='biofrills',
    version='0.0.0-dev',
    description='Bio scripts, parsers and utilities',
    author='Eric Talevich',
    author_email='etal@uga.edu',
    url='http://etalog.blogspot.com/',
    packages=['biofrills',
             ],
)

try:
    from os.path import dirname
    from Cython.Distutils import build_ext
    setup_args.update(
        cmdclass={'build_ext': build_ext},
        ext_modules=[
            Extension('biofrills.cpairutils',
                      [(dirname(__file__) or '.') +
                       '/biofrills/cpairutils.pyx']),
        ],
    )
except ImportError:
    pass

setup(**setup_args)


#!/usr/bin/env python

"""Bioinformatics utilities for sequence analysis."""

from glob import glob
from os.path import dirname

DIR = (dirname(__file__) or '.') + '/'

setup_args = {}

try:
    from setuptools import setup
    from setuptools.extension import Extension
    # Dependencies for easy_install:
    setup_args.update(
        install_requires=[
            'Biopython >= 1.59',
            'Cython >= 0.11',
        ])
except ImportError:
    from distutils.core import setup
    from distutils.extension import Extension

setup_args.update(
    name='biofrills',
    version='0.0.0-dev',
    description=__doc__,
    author='Eric Talevich',
    author_email='etal@uga.edu',
    url='http://github.com/etal/biofrills',
    packages=['biofrills'],
    #scripts=glob(DIR + 'scripts/*')
)

try:
    from Cython.Distutils import build_ext
    setup_args.update(
        cmdclass={'build_ext': build_ext},
        ext_modules=[
            Extension('biofrills.cpairutils',
                      [DIR + 'biofrills/cpairutils.pyx']),
        ],
    )
except ImportError:
    pass

setup(**setup_args)


correct dependencies for setuptools; minor cleanup