from numpy.distutils.core import setup, Extension
import os


if os.name == 'nt':
    # If OS is Windows, don't compile Fortran code
    ext = []
else:
    # If OS is OS X or Linux, assume Fortran compilers are available
    ext = [
        Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
            sources=['src_f/idw.f95']),
        Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
            sources=['src_f/rmts.f95', 'src_f/utils.f95']),
        Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
            sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
    ]

setup(name='smt',
    version='0.1',
    description='The Surrogate Model Toolbox (SMT)',
    author='Mohamed Amine Bouhlel',
    author_email='mbouhlel@umich.edu',
    license='BSD-3',
    packages=[
        'smt',
        'smt/problems',
        'smt/sampling',
        'smt/utils',
    ],
    install_requires=[
    'scikit-learn',
    'pyDOE',
    'pyamg',
    ],
    zip_safe=False,
    ext_modules=ext,
)

from numpy.distutils.core import setup, Extension
import os


if os.name == 'nt' and 0:
    # If OS is Windows, don't compile Fortran code
    ext = []
else:
    # If OS is OS X or Linux, assume Fortran compilers are available
    ext = [
        Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
            sources=['src_f/idw.f95']),
        Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
            sources=['src_f/rmts.f95', 'src_f/utils.f95']),
        Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
            sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
    ]

setup(name='smt',
    version='0.1',
    description='The Surrogate Model Toolbox (SMT)',
    author='Mohamed Amine Bouhlel',
    author_email='mbouhlel@umich.edu',
    license='BSD-3',
    packages=[
        'smt',
        'smt/problems',
        'smt/sampling',
        'smt/utils',
    ],
    install_requires=[
    'scikit-learn',
    'pyDOE',
    'pyamg',
    ],
    zip_safe=False,
    ext_modules=ext,
)

Test Fortran compiler on windows
Test Fortran compiler on windows
