From f242901a85980741edb4f25e8080b7c79df12714 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Tue, 30 Jan 2018 16:45:50 +0100 Subject: [PATCH] imgtool: Use a requirements file for dependencies Instead of relying on distro packages standardize the imgtool dependencies into a requirements.txt. Signed-off-by: Carles Cufi --- docs/imgtool.md | 8 ++------ scripts/requirements.txt | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 scripts/requirements.txt diff --git a/docs/imgtool.md b/docs/imgtool.md index 98ba8311..127705cb 100644 --- a/docs/imgtool.md +++ b/docs/imgtool.md @@ -6,13 +6,9 @@ this script should be preferred to the manual steps described in `doc/signed_images.md`. This program is written for Python3, and has several dependencies on -Python libraries. These can be installed using 'pip3' manually: +Python libraries. These can be installed using 'pip3': - pip3 install --user cryptography - -or, on Ubuntu, using the package manager: - - sudo apt-get install python3-cryptography + pip3 install --user -r scripts/requirements.txt ## Managing keys diff --git a/scripts/requirements.txt b/scripts/requirements.txt new file mode 100644 index 00000000..0d38bc5e --- /dev/null +++ b/scripts/requirements.txt @@ -0,0 +1 @@ +cryptography