doc: update GSG and Linux guides for move to Python 3.6

Add information about the minimum Python version to the advanced Linux
documentation.

Drop 16.04 from the GSG since its system Python 3 is no longer covered
by these instructions.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2019-12-11 13:05:54 -08:00 committed by Alberto Escolar
commit 93b740c464
2 changed files with 21 additions and 12 deletions

View file

@ -29,10 +29,11 @@ tools. First, make sure your development system OS is updated:
.. group-tab:: Ubuntu
Use these commands to bring your Linux (Ubuntu) system up to date.
If you're using a different Linux distribution, use the appropriate
package manager for your OS. (See :ref:`installation_linux` for
more information about other Linux distributions.)
This guide covers Ubuntu version 18.04 LTS and later. See
:ref:`installation_linux` for information about other Linux
distributions and older versions of Ubuntu.
Use these commands to bring your Ubuntu system up to date:
.. code-block:: bash
@ -94,16 +95,11 @@ We'll also install Zephyr's multi-purpose west tool.
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
b) Add the kitware repo corresponding to your Ubuntu LTS release (use
``cat /etc/os-release`` to check):
b) Add the kitware repo corresponding to the Ubuntu 18.04 LTS release:
For Ubuntu Bionic Beaver (18.04) use::
.. code-block:: bash
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
For Ubuntu Xenial Xerus (16.04) use::
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main'
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
c) Then install the updated cmake using the usual apt commands:

View file

@ -192,6 +192,19 @@ more recent one by building from source, or use the one that is bundled in
the :ref:`Zephyr SDK <zephyr_sdk>` by installing it and setting the
:envvar:`ZEPHYR_SDK_INSTALL_DIR` environment variable.
Python
======
Python 3.6 or later is required. Check what version you have by using ``python3
--version``.
If you have an older version, you will need to install a more recent Python 3.
You can build from source, or use a backport from your distribution's package
manager channels if one is available. Isolating this Python in a virtual
environment is recommended to avoid interfering with your system Python.
.. _pyenv: https://github.com/pyenv/pyenv
.. _zephyr_sdk:
Install the Zephyr Software Development Kit (SDK)