Sign inSign up

anynameaaa/arm64v8_buildenv

By anynameaaa

•Updated about 3 years ago

Build environment for NVIDIA Jetson series for python/cython apps

Image
0

83

anynameaaa/arm64v8_buildenv repository overview

⁠Jetson build environment

⁠Purpose

When deploying non-containerized apps (eg. debian packages) which require Python, its best to use python's virtual environment. However, for off-device compilation, this causes a few issues:

  • Python venv does not contain actual Python, so for it to work, host must have exactly the same version of Python, with which venv was created. Easiest way to insure that, is to build package on the same base OS, in case of Jetpack 5.X that is ubuntu:focal.
  • Some Python packages, which include/compile non-Python code (eg. numpy, pysoem) must be architecture-specific. In case of Jetson, that is aarch64/arm64v8. However, running it on amd64 host requires qemu, which makes things considerably slow.

For these reasons, its better to have a ready docker image with pre-installed dependencies required for creating Python's virtual environment with required version of Python, arm64v8, and gcc for Cython compilation.

⁠Installed packages

  • python3
  • python3-pip
  • python3-dev
  • python3-venv
  • build-essential
  • git

Tag summary

Content type

Image

Digest

sha256:5c75ccbfd…

Size

152.4 MB

Last updated

about 3 years ago

docker pull anynameaaa/arm64v8_buildenv:focal