#!/usr/bin/env python
from setuptools import setup, Extension

setup(
    name='javelin',
    version='0.1.0',
    description='',
    url='https://github.com/rosswhitfield/javelin',
    author='Ross Whitfield',
    author_email='whitfieldre@ornl.gov',
    license='MIT',
    packages=['javelin'],
    ext_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
                           extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'])]
)

#!/usr/bin/env python
from setuptools import setup, Extension, distutils

if distutils.ccompiler.get_default_compiler() == 'msvc':
    extra_compile_args = ['/openmp']
    extra_link_args = None
else:
    extra_compile_args = ['-fopenmp']
    extra_link_args = ['-fopenmp']

setup(
    name='javelin',
    version='0.1.0',
    description='',
    url='https://github.com/rosswhitfield/javelin',
    author='Ross Whitfield',
    author_email='whitfieldre@ornl.gov',
    license='MIT',
    packages=['javelin'],
    ext_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
                           extra_compile_args=extra_compile_args,
                           extra_link_args=extra_link_args)]
)

Fix openmp flags for windows
Fix openmp flags for windows
