Kirkstone用python3-scipyビルド

Kirkstone用python3-scipyビルド

Yocto / Kirkstone用のpython3-scipyをインストールしようとしています。

組み込みコマンドpipoeを使用してパッケージをインストールしました。

pipoe --python python3 --package scipy --licenses MIT

コマンドが機能し、対応するレシピがインストールされます。

イメージをコンパイルしてビルドします。

bitbake kirkstone-image.bb

作業ディレクトリでは、私はこれを次のように見ます。

観察された出力:

cd /build/build/tmp/work/cortexa9t2hf-neon-linux-gnueabi/python3-scipy/1.13.0-r0/

tree image

└── usr
    └── lib
        └── python3.10
            └── site-packages
                └── UNKNOWN-0.0.0.dist-info
                    ├── LICENSES_bundled.txt
                    ├── LICENSE.txt
                    ├── METADATA
                    ├── RECORD
                    ├── top_level.txt
                    └── WHEEL

建設状況は不明です。

このURLから:https://docs.scipy.org/doc/scipy/dev/toolchain.html 私のPythonバージョンがそれをサポートしていることがわかります。

python3-scipyレシピファイル

SUMMARY = "Fundamental algorithms for scientific computing in Python"
HOMEPAGE = "https://scipy.org/"
AUTHOR = "None <None>"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5f477c3073ea2d02a70a764319f5f873"

SRC_URI = "https://files.pythonhosted.org/packages/fb/a3/328965862f41ba67d27ddd26205962007ec87d99eec6d364a29bf00ac093/scipy-1.13.0.tar.gz"
SRC_URI[md5sum] = "6c6c404e2cf783374587c9f012d622bc"
SRC_URI[sha256sum] = "58569af537ea29d3f78e5abd18398459f195546bb3be23d16677fb26616cc11e"

S = "${WORKDIR}/scipy-1.13.0"

DEPENDS += "python3-numpy-native python3-cython-native lapack openblas libgfortran gcc-runtime python3-pybind11-native python3-wheel-native python3-pythran-native"

RDEPENDS:${PN} += "openblas lapack libgfortran python3-numpy python3-pybind11 cmake"

CLEANBROKEN = "1"
DISTUTILS_BUILD_ARGS = "--fcompiler=gfortran"

#inherit setuptools3-base
#inherit setuptools3_legacy
#inherit setuptools3
inherit python_setuptools_build_meta
inherit pkgconfig

追加の詳細:

ターゲットアーキテクチャ - ARM

Yoctoバージョン - Kirkstone

ホストサーバー - Ubuntu 22.04LTS

Pythonバージョン - 3.10.7

ベストアンサー1

回避策として私がしたことは、レイヤーを複製することでしたmeta-scipy

git clone -b branch_name https://github.com/tuxable-ltd/meta-scipy meta-scipy
  • 私はdunfell支店を利用しました。
  • それに応じてレシピを変更し、必要に応じて画像を作成しました。期待どおりに動作します。

Python3-scipyバージョン1.8.1。

これは回避策ですが、元の問題は正しく識別されませんでした。

メモ: 上の層はもはや維持されずに保存された。

おすすめ記事