2.5 KiB
Installation
Install from PyPI
Falcon is super easy to install with pip. If you don't have pip yet, please run—don't walk—on over to the pip website and get that happy little tool installed before you do anything else.
If available, Falcon will compile itself with Cython for an extra speed boost. The following will make sure Cython is installed first, and that you always have the latest and greatest
$ pip install --upgrade cython falconIf you are on PyPy, you won't need Cython, of course:
$ pip install --upgrade falconInstalling Cython on OS X
In order to get Cython working on OS X Mavericks with Xcode 5.1, you will first need to set up Xcode Command Line Tools. Install them with this command:
$ xcode-select --installThe Xcode 5.1 CLang compiler treats unrecognized command-line options as errors; this can cause problems under Python 2.6, for example:
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]You can work around errors caused by unused arguments by setting some environment variables:
$ export CFLAGS=-Qunused-arguments
$ export CPPFLAGS=-Qunused-arguments
$ pip install cython falconWSGI Server
Falcon speaks WSGI. If you want to actually serve a Falcon app, you will want a good WSGI server. Gunicorn and uWSGI are some of the more popular ones out there, but anything that can load a WSGI app will do. Gevent is an async library that works well with both Gunicorn and uWSGI.
$ pip install --upgrade gevent [gunicorn|uwsgi]Source Code
Falcon lives on GitHub, making the code easy to browse, download, fork, etc. Pull requests are always welcome! Also, please remember to star the project if it makes you happy.
Once you have cloned the repro or downloaded a tarball from GitHub, you can install Falcon like this:
$ cd falcon
$ pip install .Or, if you want to edit the code, first fork the main repo, clone the fork to your desktop, and then run the following to install it using symbolic linking, so that when you change your code, the changes will be automagically available to your app without having to reinstall the package:
$ cd falcon
$ pip install -e .Did we mention we love pull requests? :)