私はYoctoレシピにhttps://github.com/kliment/Printrunをパッケージしようとしていますが、動作させることはできません。私のレシピは、現在、次のようになります。Yocto setup.pyにpyserialが必要
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
PV = "2.7"
SRCREV = "0193a9dbe31458c45059bf2dcb0a9905b7bb06fc"
SRC_URI = "git://github.com/kliment/Printrun.git;protocol=git;branch=master"
RDEPENDS_${PN} = "python-cython \
python-pyserial \
"
S = "${WORKDIR}/git"
inherit distutils
私はこれは私はそれがdistutilsのから継承setup.pyを持っているので、何をする必要があるかであると仮定していますか?もしそうなら、これは動作しないと私はシリアルモジュールの欠如に不満のエラーが表示されます。
DEBUG: Executing shell function do_compile
WARNING: Failed to cythonize: No module named Cython.Build
Traceback (most recent call last):
File "setup.py", line 36, in <module>
from printrun.printcore import __version__ as printcore_version
File "/home/gerhard/Jethro/yocto/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/printrun/2.7-r0/git/printrun/printcore.py", line 20, in <module>
from serial import Serial, SerialException, PARITY_ODD, PARITY_NONE
ImportError: No module named serial
ERROR: python setup.py build execution failed.
ERROR: Function failed: do_compile (log file is located at /home/gerhard/Jethro/yocto/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/printrun/2.7-r0/temp/log.do_compile.15542)
私もcythonで小さなcythonableモジュールをコンパイルできるようにしたいと思います。何らかの理由で、私がrdependsとして追加したにもかかわらず、cythonとpsyerialの両方が利用できないのですが、何が間違っていますか?
エラーにはログファイルがありますが、それを見ましたか? – stdcall
@stdcallはい、そのエラーブロックはログファイルです – Gerharddc
'Cythonizeに失敗しました:Cython.Buildという名前のモジュールはありませんでした。 ' – stdcall