2016-09-26 4 views
1

私が継承したCythonモジュールを持っています。私はそれを一度作りました。その後、2回目にビルドすると、次のエラーが表示されます。Cython:UserWarning:Unknown拡張オプション: 'include_path'

[email protected]:pcl_functions (master=)$ sudo python setup.py build_ext --inplace 
/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'include_path' 
    warnings.warn(msg) 

何が原因なのですか?私はCythonを初めて使っているので、モジュールがなぜ一度ビルドされたのかは分からないので、その後私にこのエラーを与えます。

答えて

1

多分、前回とは違ったバージョンのCythonを使ったことがあります。バージョンをcython --versionで確認してください。

cythonize()関数はinclude_pathのを受け入れているようだ:https://github.com/cython/cython/search?utf8=%E2%9C%93&q=include_path

あなたは拡張機能やcythonizeを使用していますか? cythonizeの使用方法についてはhttps://github.com/cython/cython/wiki/enhancements-distutils_preprocessing

拡張を(参照) "include_dirs" オプションを受け付けます。 https://github.com/cztomczak/cefpython/blob/f8286e0ff5abf32242986aca2e7bb8fd3f6a60ff/src/linux/setup/setup.py#L66

関連する問題