Skip to contentSkip to conversation

travis: Install pyelftools via pip

PATCH Superseded Tom Rini 1 participant 2 messages Jul 27, 2020

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH v2 1/1 travis: Install pyelftools via pip

With the migration to python3 for all of our tests, we need to install pyelftools via pip now rather than the system tools as they will otherwise not be present in our virtualenv.

---
Changes in v2: Switch to pip

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index 73daf273c55b..66ccf5b2ee6a 100644
@@ -23,7 +23,6 @@ addons:
     - build-essential
     - libsdl2-dev
     - python
-    - python-pyelftools
     - python3-sphinx
     - python3-virtualenv
     - python3-pip
@@ -256,6 +255,7 @@ script:
      if [[ -n "${TEST_PY_TOOLS}" ]]; then
        export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
        export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
+       pip install pyelftools &&
        ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test &&
        ./tools/patman/patman test &&
        ./tools/buildman/buildman -t &&
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v2 1/1 travis: Install pyelftools via pip

Quoted 5 lines · Tom Rini

With the migration to python3 for all of our tests, we need to install pyelftools via pip now rather than the system tools as they will otherwise not be present in our virtualenv.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200727/11625418/attachment.sig>