from setuptools import setup, Extension
import sys

# Define the C++ extension. Name it 'myext' to match the C++ source file.
# If your C++ code uses a newer standard, adjust extra_compile_args as needed.
ext_modules = [
    Extension(
        'myext',
        sources=['myext.cpp'],
        language='c++',
        extra_compile_args=['-std=c++11'] if sys.platform != 'win32' else ['/std:c++11'],
    )
]

setup(
    name='myext',
    version='0.0.1',
    description='A small Python extension built from myext.cpp',
    ext_modules=ext_modules,
)
