Add python 3 support for Ubuntu 18

Stable installs work fine, but git installs need an additional package
to be installed (python3-setuptools). Otherwise, the script fails with
the following error:

```
*  INFO: Running install_ubuntu_git()
Traceback (most recent call last):
  File "setup.py", line 24, in <module>
    import distutils.dist
ModuleNotFoundError: No module named 'distutils.dist'
```
This commit is contained in:
rallytime 2018-06-19 11:44:44 -04:00
parent e41f090105
commit 8e03738140
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19
2 changed files with 3 additions and 0 deletions

View file

@ -333,6 +333,7 @@ this offering, while limited, is as follows:
- CentOS 7
- Debian 9
- Ubuntu 16.04
- Ubuntu 18.04
Installing the Python 3 packages for Salt is done via the ``-x`` option:

View file

@ -2774,6 +2774,8 @@ install_ubuntu_git_deps() {
if [ -n "$_PY_EXE" ] && [ "$_PY_MAJOR_VERSION" -eq 3 ]; then
PY_PKG_VER=3
__PACKAGES="${__PACKAGES} python3-setuptools"
else
PY_PKG_VER=""