usse/funda-scraper/venv/lib/python3.10/site-packages/mypyc/lib-rt/setup.py

28 lines
889 B
Python

"""Build script for mypyc C runtime library unit tests.
The tests are written in C++ and use the Google Test framework.
"""
from distutils.core import setup, Extension
import sys
if sys.platform == 'darwin':
kwargs = {'language': 'c++'}
compile_args = []
else:
kwargs = {} # type: ignore
compile_args = ['--std=c++11']
setup(name='test_capi',
version='0.1',
ext_modules=[Extension(
'test_capi',
['test_capi.cc', 'init.c', 'int_ops.c', 'list_ops.c', 'exc_ops.c', 'generic_ops.c'],
depends=['CPy.h', 'mypyc_util.h', 'pythonsupport.h'],
extra_compile_args=['-Wno-unused-function', '-Wno-sign-compare'] + compile_args,
library_dirs=['../external/googletest/make'],
libraries=['gtest'],
include_dirs=['../external/googletest', '../external/googletest/include'],
**kwargs
)])