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 <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2018-01-30 16:45:50 +01:00 committed by David Brown
parent 6f2857c2a7
commit f242901a85
2 changed files with 3 additions and 6 deletions

View File

@ -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

1
scripts/requirements.txt Normal file
View File

@ -0,0 +1 @@
cryptography