init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
27
.venv/lib/python3.8/site-packages/mypyc/lib-rt/setup.py
Normal file
27
.venv/lib/python3.8/site-packages/mypyc/lib-rt/setup.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
"""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
|
||||
)])
|
||||
Loading…
Add table
Add a link
Reference in a new issue