Separate python 2 and python 3 install

Per review comments
This commit is contained in:
Gilles Debunne 2020-04-24 16:29:33 +02:00 committed by Pedro Algarvio
parent 9dd552cbb3
commit 1285f86513
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -145,18 +145,19 @@ If you already have Python installed, ``python 2.7``, then it's as easy as:
python -m urllib "https://bootstrap.saltstack.com" > bootstrap-salt.sh
sudo sh bootstrap-salt.sh git develop
All Python versions should support the following in-line code:
With python version 2, the following in-line code should always work:
.. code:: console
python -c 'import urllib; print urllib.urlopen("https://bootstrap.saltstack.com").read()' > bootstrap-salt.sh
sudo sh bootstrap-salt.sh git develop
or with python version 3:
With python version 3:
.. code:: console
python3 -c 'import urllib.request; print(urllib.request.urlopen("https://bootstrap.saltstack.com").read().decode("ascii"))' > bootstrap-salt.sh
sudo sh bootstrap-salt.sh git develop
Install using fetch
~~~~~~~~~~~~~~~~~~~