python3-jetson-stats (jtop): upgrade 4.3.1 -> 7.2.0 - #211
Open
VFjr wants to merge 3 commits into
Open
Conversation
Python bindings for NVML (import name pynvml). Needed by jetson-stats 7.2.0. RRECOMMENDS tegra-libraries-nvml for the Jetson C library. Signed-off-by: Victor <victor.florea.jr@gmail.com>
JetPack 7 / L4T R39 support: Python 3.14 fork start-method fix,
3d_scaling handling for JP7 Orin, and R39.2 JetPack mapping.
Switch to python_setuptools_build_meta, PEP 625 sdist name, and
${datadir} install paths. Replace the old OE patches with a setup.py
strip that avoids host systemctl/groupadd during the build.
RDEPENDS on python3-nvidia-ml-py.
Signed-off-by: Victor <victor.florea.jr@gmail.com>
VFjr
force-pushed
the
python3-jetson-stats-7.2.0
branch
from
July 30, 2026 16:07
eaaf3b6 to
996664d
Compare
yocto-check-layer runs world against qemux86, where tegra recipes are skipped. An ungated RRECOMMENDS made python3-nvidia-ml-py unbuildable there. Move the recommend to python3-jetson-stats, which already has COMPATIBLE_MACHINE = "(tegra)". Signed-off-by: Victor <victor.florea.jr@gmail.com>
madisongh
requested changes
Jul 31, 2026
madisongh
left a comment
Member
There was a problem hiding this comment.
Thanks for this. See in-line for a different way to solve the layer check failure that should be more correct.
| inherit pypi setuptools3 | ||
|
|
||
| RDEPENDS:${PN} += "python3-ctypes" | ||
| RRECOMMENDS:${PN} += "tegra-libraries-nvml" |
Member
There was a problem hiding this comment.
This is likely to be a hard requirement, rather than a recommendation. Just make the additional dependency tegra-specific, and set a tegra-specific PACKAGE_ARCH:
RDEPENDS:${PN}:append:tegra = " tegra-libraries-nvml"
PACKAGE_ARCH:tegra = "${TEGRA_PKGARCH}"
| nv-tegra-release \ | ||
| " | ||
| RRECOMMENDS:${PN} += "kernel-module-nvgpu" | ||
| RRECOMMENDS:${PN} += "kernel-module-nvgpu tegra-libraries-nvml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates jetson-stats for JetPack 7 / L4T R39, and adds the nvidia-ml-py
recipe it needs.
4.3.1 breaks in a few ways on L4T R39.2:
lambdas aren't picklable, so jtop.service crash-loops
JetPack field
7.2.0 already has the fork start-method fix, defaults/guards 3d_scaling
(and maps it to the devfreq governor on JP7 Orin), and knows R39.2 →
7.2 GA. On Orin it still uses the sysfs/devfreq path; NVML is mainly for
Thor.
Also adds python3-nvidia-ml-py 13.610.43 (pynvml). There is no OE recipe for it
yet. I kept it in this layer rather than meta-python so we don't grow a
cross-repo dependency for a package whose useful runtime on Jetson is
tegra-libraries-nvml. Happy to relocate later if preferred.
Tested on Jetson Orin Nano L4T R39.2