python plugin can be used by either Python 2 or Python 3 based parts using one of the following:
This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.
Additionally, this plugin uses the following plugin-specific keywords:
process-dependency-links(bool; default: false)
python-version(string; default: python3)
python plugin also searches
<stage-dir>/usr/bin/<python-interpreter> for a Python interpreter with a basename matching
python-version in the
<stage> directory. If detected, this takes preference and
stage-packages will not use its own interpreter.