<commit_before>import os
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy

sources = ["pypoisson.pyx"]
path = "PoissonRecon_v6_13/src/"
files = [os.path.join(path,x) for x in os.listdir(path) if x.endswith(".cpp")]
sources += files



exts = [Extension("pypoisson", sources,
        language="c++",
        extra_compile_args = ["-w","-fopenmp"],
        extra_link_args=["-fopenmp"]
        )]
setup(
    name='pypoisson',
    version='0.10',
    description='Poisson Surface Reconstruction Python Binding',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/mmolero/pypoisson',
    cmdclass = {'build_ext': build_ext},
    ext_modules = exts, include_dirs = [numpy.get_include()]

)


"""
python setup.py build_ext --inplace --compiler=mingw32 -DMS_WIN64
"""<commit_msg>pass __linux__ macro through setup.py<commit_after>import os
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy


sources = ["pypoisson.pyx"]
path = "PoissonRecon_v6_13/src/"
files = [os.path.join(path,x) for x in os.listdir(path) if x.endswith(".cpp")]
sources += files


if sys.platform.startswith('linux') or sys.platform == 'darwin':
    macros = [('__linux__', '1')]
else:
    macros = [('__linux__', '0')]


exts = [Extension("pypoisson", sources,
        language="c++",
        define_macros=macros,
        extra_compile_args = ["-w","-fopenmp"],
        extra_link_args=["-fopenmp"]
        )]
setup(
    name='pypoisson',
    version='0.10',
    description='Poisson Surface Reconstruction Python Binding',
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/mmolero/pypoisson',
    cmdclass = {'build_ext': build_ext},
    ext_modules = exts, include_dirs = [numpy.get_include()]

)


"""
python setup.py build_ext --inplace --compiler=mingw32 -DMS_WIN64
"""
{'fraction_non_alphanumeric': 0.15423901940755874, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 4.062015503875969, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3457787', 'n_tokens_mistral': 690, 'n_tokens_neox': 672, 'n_words': 141}