Python versions >=2.7 do not have a __main__ in urllib.

This commit is contained in:
Pedro Algarvio 2013-01-29 19:34:38 +00:00
parent 53d9020321
commit 4949f3021a

View file

@ -48,13 +48,21 @@ If you have certificate issues using ``wget`` try the following:
If you already have python installed, then it's as easy as:
If you already have python installed, ``python 2.6``, then it's as easy as:
.. code:: console
python -m urllib "http://bootstrap.saltstack.org" | sudo sh -s -- git develop
All python versions should support the following one liner:
.. code:: console
python -c 'import urllib; print urllib.urlopen("http://bootstrap.saltstack.org").read()' | \
sudo sh -s -- git develop
On a FreeBSD base system you usually don't have either of the above binaries available. You **do**
have ``fetch`` available though: