コンパイル(pyd化)
2022/09/11
Python3.8.2, Cython0.29.17
pyxコードのチェック
"C:\Program Files\Python\Scripts\cython.exe" -a hogehoge.pyx
setup.py
from distutils.core import setup
from Cython.Build import cythonize
#import numpy
setup(
ext_modules = cythonize("hogehoge.pyx"),
#include_dirs = [numpy.get_include()]
)
コンパイル(pyd化)
"C:\Program Files\Python\python.exe" setup.py build_ext --inplace --compiler=mingw32
Source Files and Compilation
https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html