Major fixes and new features
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
43
venv/lib/python3.12/site-packages/mypyc/lib-rt/setup.py
Normal file
43
venv/lib/python3.12/site-packages/mypyc/lib-rt/setup.py
Normal file
@@ -0,0 +1,43 @@
|
||||
"""Build script for mypyc C runtime library unit tests.
|
||||
|
||||
The tests are written in C++ and use the Google Test framework.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from distutils.core import Extension, setup
|
||||
from typing import Any
|
||||
|
||||
kwargs: dict[str, Any]
|
||||
if sys.platform == "darwin":
|
||||
kwargs = {"language": "c++"}
|
||||
compile_args = []
|
||||
else:
|
||||
kwargs = {}
|
||||
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",
|
||||
"float_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,
|
||||
)
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user