#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
    import numpy
    import os
    from distutils.errors import DistutilsError
    if numpy.__dict__.get('quaternion') is not None:
        raise DistutilsError('The target NumPy already has a quaternion type')
    from numpy.distutils.misc_util import Configuration
    from numpy.distutils.system_info import get_info
    if(os.environ.get('THIS_IS_TRAVIS') is not None):
        print("This appears to be Travis!")
        compile_args = ['-O3']
    else:
        compile_args = ['-ffast-math', '-O3']
    config = Configuration('quaternion',parent_package,top_path)
    config.add_extension('numpy_quaternion',
                         ['quaternion.c','numpy_quaternion.c'],
                         extra_compile_args=compile_args,)
    return config

if __name__ == "__main__":
    from numpy.distutils.core import setup
    setup(configuration=configuration)

#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
    import numpy
    import os
    from distutils.errors import DistutilsError
    if numpy.__dict__.get('quaternion') is not None:
        raise DistutilsError('The target NumPy already has a quaternion type')
    from numpy.distutils.misc_util import Configuration
    from numpy.distutils.system_info import get_info
    # if(os.environ.get('THIS_IS_TRAVIS') is not None):
    #     print("This appears to be Travis!")
    #     compile_args = ['-O3']
    # else:
    #     compile_args = ['-ffast-math', '-O3']
    compile_args = ['-O3']
    config = Configuration('quaternion',parent_package,top_path)
    config.add_extension('numpy_quaternion',
                         ['quaternion.c','numpy_quaternion.c'],
                         extra_compile_args=compile_args,)
    return config

if __name__ == "__main__":
    from numpy.distutils.core import setup
    setup(configuration=configuration)

Remove --ffast-math for all builds
Remove --ffast-math for all builds

Due to a bug in anaconda's libm support for linux, fast-math is
unusable.  And I don't want to try to hack a way to decide if it's
usable on things other than linux, because it's just one more thing to
break.
