[Buildroot] Support for package python-rpds-py

Andreas andreasembbuild at gmail.com
Sat Jul 22 09:35:26 UTC 2023


Hi,

I need the package python-rpds-py that is a dependency of the referencing
package and depends itself on python-maturin.
I configured it as follows:
################################################################################
#
# python-rpds-py
#
################################################################################

PYTHON_RPDS_PY_VERSION = 0.8.10
PYTHON_RPDS_PY_SOURCE = rpds_py-$(PYTHON_RPDS_PY_VERSION).tar.gz
PYTHON_RPDS_PY_SITE =
https://files.pythonhosted.org/packages/e6/fe/7d07bc08cce2ccae2c7e5c96d9b3976c4e1fa5e248989dca0a58bc7628f8
PYTHON_RPDS_PY_SETUP_TYPE = pep517
PYTHON_RPDS_PY_LICENSE = MIT
PYTHON_RPDS_PY_LICENSE_FILES = LICENSE
PYTHON_RPDS_PY_DEPENDENCIES = host-python-maturin

$(eval $(python-package))

The one for maturin looks as follows:

################################################################################
#
# python-maturin
#
################################################################################

PYTHON_MATURIN_VERSION = 1.0.0
PYTHON_MATURIN_SOURCE = maturin-$(PYTHON_MATURIN_VERSION).tar.gz
PYTHON_MATURIN_SITE =
https://files.pythonhosted.org/packages/1c/de/5f56b77179595ba52786eedb081fc6b0f1d0a4496bc77660e8feabd607ec
PYTHON_MATURIN_SETUP_TYPE = setuptools
PYTHON_MATURIN_LICENSE = MIT OR Apache-2.0
PYTHON_MATURIN_LICENSE_FILES = license-apache license-mit
HOST_PYTHON_MATURIN_DEPENDENCIES = \
host-python-setuptools-rust \
host-rustc
HOST_PYTHON_MATURIN_ENV = \
$(HOST_PKG_CARGO_ENV) \
PYO3_CROSS_LIB_DIR="$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)"
# We need to vendor the Cargo crates at download time
PYTHON_MATURIN_DOWNLOAD_POST_PROCESS = cargo
PYTHON_MATURIN_DOWNLOAD_DEPENDENCIES = host-rustc
HOST_PYTHON_MATURIN_DL_ENV = $(HOST_PKG_CARGO_ENV)

$(eval $(host-python-package))

So far so go. However, I get the following error for installing it on the
target:

ERROR: architecture for "/usr/lib/python3.10/site-packages/rpds/
rpds.cpython-310-arm-linux-gnueabihf.so" is "Advanced Micro Devices
X86-64", should be "ARM".

What could be the cause of the error and how can I prevent it?
For some more overall context I try to compile the package
python-notebook notebook==6.5.4, that itself depends on ipython and
ipykernel which require jupyterlab-widgets and jupyterlab-pygments that
throw a similar error.

Kind Regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20230722/281f0af0/attachment.html>


More information about the buildroot mailing list