correct code-block highlighting and link formatting

This commit is contained in:
Tomas Thor Jonsson
2012-04-23 20:15:00 +02:00
parent 38d0e634a6
commit 6978c5a1ae
3 changed files with 38 additions and 16 deletions
+10 -5
View File
@@ -22,14 +22,15 @@ command. It also enables you to add this network installation capability to
your own Python software with very little work. your own Python software with very little work.
To obtain the latest version of Distribute for Linux, run the python script To obtain the latest version of Distribute for Linux, run the python script
available here: available here: `python-distribute <http://python-distribute.org/distribute_setup.py>`_
http://python-distribute.org/distribute_setup.py
The new``easy_install`` command you have available is considered by many to be The new``easy_install`` command you have available is considered by many to be
deprecated, so we will install its replacement: **pip**. Pip allows for deprecated, so we will install its replacement: **pip**. Pip allows for
uninstallation of packages, and is actively maintained, unlike easy_install. uninstallation of packages, and is actively maintained, unlike easy_install.
To install pip, simply open a command prompt and run:: To install pip, simply open a command prompt and run
.. code-block:: console
$ easy_install pip $ easy_install pip
@@ -38,7 +39,9 @@ Virtualenv
---------- ----------
After Distribute & Pip, the next development tool that you should install is After Distribute & Pip, the next development tool that you should install is
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip:: `virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip
.. code-block:: console
$ pip install virtualenv $ pip install virtualenv
@@ -51,7 +54,9 @@ framework and application will have many dependencies.
To set up a new Python environment, change the working directory to where ever To set up a new Python environment, change the working directory to where ever
you want to store the environment, and run the virtualenv utility in your you want to store the environment, and run the virtualenv utility in your
project's directory:: project's directory
.. code-block:: console
$ virtualenv --distribute venv $ virtualenv --distribute venv
+18 -6
View File
@@ -29,13 +29,17 @@ Linux systems will notice one key component missing: a decent package manager.
`Homebrew <http://mxcl.github.com/homebrew/>`_ fills this void. `Homebrew <http://mxcl.github.com/homebrew/>`_ fills this void.
To `install Homebrew <https://github.com/mxcl/homebrew/wiki/installation>`_, To `install Homebrew <https://github.com/mxcl/homebrew/wiki/installation>`_,
simply run:: simply run
.. code-block:: console
$ ruby -e "$(curl -fsS https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" $ ruby -e "$(curl -fsS https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
Then, insert the hombrew directory at the top of your ``PATH`` enviornment Then, insert the hombrew directory at the top of your ``PATH`` enviornment
variable. You can do this by adding the following line at the bottom of your variable. You can do this by adding the following line at the bottom of your
``~/.bashrc`` file:: ``~/.bashrc`` file
.. code-block:: console
export PATH=/usr/local/bin:$PATH export PATH=/usr/local/bin:$PATH
@@ -44,7 +48,9 @@ Now, we can install Python 2.7: ::
$ brew install python --framework $ brew install python --framework
This will take a minute or two. Once that's complete, you'll have to add the This will take a minute or two. Once that's complete, you'll have to add the
new Python scripts directory to your ``PATH``:: new Python scripts directory to your ``PATH``
.. code-block:: console
export PATH=/usr/local/share/python:$PATH export PATH=/usr/local/share/python:$PATH
@@ -69,7 +75,9 @@ considered by many to be deprecated, so we will install its replacement:
**pip**. Pip allows for uninstallation of packages, and is actively maintained, **pip**. Pip allows for uninstallation of packages, and is actively maintained,
unlike easy_install. unlike easy_install.
To install pip, simply open a command prompt and run:: To install pip, simply open a command prompt and run
.. code-block:: console
$ easy_install pip $ easy_install pip
@@ -78,7 +86,9 @@ Virtualenv
---------- ----------
After Distribute & Pip, the next development tool that you should install is After Distribute & Pip, the next development tool that you should install is
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip:: `virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip
.. code-block:: console
$ pip install virtualenv $ pip install virtualenv
@@ -91,7 +101,9 @@ framework and application will have many dependencies.
To set up a new Python environment, change the working directory to where ever To set up a new Python environment, change the working directory to where ever
you want to store the environment, and run the virtualenv utility in your you want to store the environment, and run the virtualenv utility in your
project's directory:: project's directory
.. code-block:: console
$ virtualenv --distribute venv $ virtualenv --distribute venv
+10 -5
View File
@@ -45,8 +45,7 @@ command. It also enables you to add this network installation capability to
your own Python software with very little work. your own Python software with very little work.
To obtain the latest version of Distribute for Windows, run the python script To obtain the latest version of Distribute for Windows, run the python script
available here: available here: `python-distribute <http://python-distribute.org/distribute_setup.py>`_
http://python-distribute.org/distribute_setup.py
You'll now have a new command available to you: **easy_install**. It is You'll now have a new command available to you: **easy_install**. It is
@@ -54,7 +53,9 @@ considered by many to be deprecated, so we will install its replacement:
**pip**. Pip allows for uninstallation of packages, and is actively maintained, **pip**. Pip allows for uninstallation of packages, and is actively maintained,
unlike easy_install. unlike easy_install.
To install pip, simply open a command prompt and run:: To install pip, simply open a command prompt and run
.. code-block:: console
> easy_install pip > easy_install pip
@@ -63,7 +64,9 @@ Virtualenv
---------- ----------
After Distribute & Pip, the next development tool that you should install is After Distribute & Pip, the next development tool that you should install is
`virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip:: `virtualenv <http://pypi.python.org/pypi/virtualenv/>`_. Use pip
.. code-block:: console
> pip install virtualenv > pip install virtualenv
@@ -77,7 +80,9 @@ framework and application will have many dependencies.
To set up a new Python environment, change the working directory to where ever To set up a new Python environment, change the working directory to where ever
you want to store the environment, and run the virtualenv utility in your you want to store the environment, and run the virtualenv utility in your
project's directory:: project's directory
.. code-block:: console
> virtualenv --distribute venv > virtualenv --distribute venv