package/python-gymnasium: propagate python-numpy dependencies

Commit fb53371286 introduced the
python-gymnasium package, but it was not careful enough to propagate
dependencies of selected packages, causing messages such as:

WARNING: unmet direct dependencies detected for BR2_PACKAGE_PYTHON_NUMPY
  Depends on [n]: BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS [=y] && BR2_INSTALL_LIBSTDCPP [=n] && (BR2_TOOLCHAIN_USES_GLIBC [=y] || BR2_TOOLCHAIN_USES_MUSL [=n]) && BR2_TOOLCHAIN_GCC_AT_LEAST_9 [=y]
  Selected by [y]:
  - BR2_PACKAGE_PYTHON_GYMNASIUM [=y] && BR2_PACKAGE_PYTHON3 [=y]

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Petazzoni
2026-05-30 19:19:59 +02:00
parent 7d4e403f02
commit c6610787d8

View File

@@ -1,5 +1,9 @@
config BR2_PACKAGE_PYTHON_GYMNASIUM
bool "python-gymnasium"
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS # python-numpy
depends on BR2_INSTALL_LIBSTDCPP # python-numpy
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
select BR2_PACKAGE_PYTHON_CLOUDPICKLE # runtime
select BR2_PACKAGE_PYTHON_FARAMA_NOTIFICATIONS # runtime
select BR2_PACKAGE_PYTHON_NUMPY # runtime
@@ -9,3 +13,9 @@ config BR2_PACKAGE_PYTHON_GYMNASIUM
of reference environments (formerly Gym).
https://farama.org
comment "python-gymnasium needs a glibc or musl toolchain w/ C++, gcc >= 9"
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)