- ...
- SDK
- Yocto
- ...
- ...
- your first application
- tools
- ...
External python dependencies#
From a workspace containing a Python application run
$ mkdir -p externals
$ pip3 install <package name> -t \
./externals/usr/lib/python$(python3 -c 'import sys; print(f\"{sys.version_info[0]}.{sys.version_info[1]}\")')/site-packages
to include those 3rd party packages you need to change the add --copy-dir ./externals:/
to your simpleswitch-generate-package
command line.
E.g.
$ simpleswitch-generate-package --name simpleswitch-example --copy-dir deploy_dir --copy-dir ./externals:/ \
--template python --startup-command /usr/bin/app.py
Note
Our VSCode extension includes support for that, see Visual Studio code integration for more details.