mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
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:
parent
e41f090105
commit
8e03738140
2 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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=""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue