mirror of
https://github.com/rmontanana/PythonCythonTemplate.git
synced 2025-08-15 15:35:58 +00:00
25 lines
526 B
Python
25 lines
526 B
Python
"""
|
|
Calling
|
|
$python setup.py build_ext --inplace
|
|
will build the extension library in the current file.
|
|
"""
|
|
|
|
from setuptools import Extension, setup
|
|
|
|
setup(
|
|
ext_modules=[
|
|
Extension(
|
|
name="testcython.ctest",
|
|
sources=[
|
|
"src/testcython/ctest.pyx",
|
|
"src/csrc/Test.cpp",
|
|
],
|
|
language="c++",
|
|
include_dirs=["testcython"],
|
|
extra_compile_args=[
|
|
"-std=c++17",
|
|
],
|
|
),
|
|
]
|
|
)
|