5

I am creating a snap app and I need to install a python dependency using

pip3 install <lib>

How can I do it using snapcraft?

Thanks

1 Answer 1

5

I found the answer in IRC. You need to use the python3 plugin specifying the dependencies in a list

parts:
  py:
    plugin: python3
    python-packages:
      - <my-dependency>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.