Browse Source

vent and no more .

pull/398/head
Kenneth Reitz 13 years ago
parent
commit
60f7e3a7b4
  1. 26
      docs/installation.rst

26
docs/installation.rst

@ -66,22 +66,18 @@ folder within::
$ mkdir myproject $ mkdir myproject
$ cd myproject $ cd myproject
$ virtualenv env $ virtualenv venv
New python executable in env/bin/python New python executable in venv/bin/python
Installing setuptools............done. Installing setuptools............done.
Now, whenever you want to work on a project, you only have to activate the Now, whenever you want to work on a project, you only have to activate the
corresponding environment. On OS X and Linux, do the following:: corresponding environment. On OS X and Linux, do the following::
$ . env/bin/activate $ source venv/bin/activate
(Note the space between the dot and the script name. The dot means that this
script should run in the context of the current shell. If this command does
not work in your shell, try replacing the dot with ``source``.)
If you are a Windows user, the following command is for you:: If you are a Windows user, the following command is for you::
$ env\scripts\activate $ venv\scripts\activate
Either way, you should now be using your virtualenv (notice how the prompt of Either way, you should now be using your virtualenv (notice how the prompt of
your shell has changed to show the active environment). your shell has changed to show the active environment).
@ -89,7 +85,7 @@ your shell has changed to show the active environment).
Now you can just enter the following command to get Flask activated in your Now you can just enter the following command to get Flask activated in your
virtualenv:: virtualenv::
$ easy_install Flask $ pip install Flask
A few seconds later and you are good to go. A few seconds later and you are good to go.
@ -118,10 +114,10 @@ Get the git checkout in a new virtualenv and run in development mode::
$ git clone http://github.com/mitsuhiko/flask.git $ git clone http://github.com/mitsuhiko/flask.git
Initialized empty Git repository in ~/dev/flask/.git/ Initialized empty Git repository in ~/dev/flask/.git/
$ cd flask $ cd flask
$ virtualenv env $ virtualenv venv --distribute
$ . env/bin/activate
New python executable in env/bin/python New python executable in env/bin/python
Installing setuptools............done. Installing setuptools............done.
$ source env/bin/activate
$ python setup.py develop $ python setup.py develop
... ...
Finished processing dependencies for Flask Finished processing dependencies for Flask
@ -134,10 +130,10 @@ To just get the development version without git, do this instead::
$ mkdir flask $ mkdir flask
$ cd flask $ cd flask
$ virtualenv env $ virtualenv venv --distribute
$ . env/bin/activate $ source venv/bin/activate
New python executable in env/bin/python New python executable in venv/bin/python
Installing setuptools............done. Installing distribute............done.
$ pip install Flask==dev $ pip install Flask==dev
... ...
Finished processing dependencies for Flask==dev Finished processing dependencies for Flask==dev

Loading…
Cancel
Save