Created
March 20, 2017 07:29
-
-
Save darden1/ee353c218fac88d10e7205705a6303b6 to your computer and use it in GitHub Desktop.
setup.py for compiling cpp_test_sum.pyx with wrapping cpp_test_sum_.cpp.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from distutils.core import setup | |
| from distutils.extension import Extension | |
| from Cython.Distutils import build_ext | |
| from Cython.Build import cythonize | |
| setup( | |
| name = "cpp_test_sum", | |
| ext_modules = cythonize( | |
| Extension("cpp_test_sum", | |
| sources=["cpp_test_sum.pyx", "cpp_test_sum_.cpp"], | |
| extra_compile_args=["-O3"], | |
| language="c++", | |
| ) | |
| ), | |
| cmdclass = {'build_ext': build_ext}, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment