Read the Easy Install documentation, to decide whether to install Pylons as a root user so it can be used by everyone or whether to use a custom installation location.
If you have easy install run:
1 | $ easy_install -f http://pylonshq.com/download/0.9.7 -U Pylons
|
Otherwise download ez_setup.py and run:
1 | $ python ez_setup.py -f http://pylonshq.com/download/0.9.7 -U Pylons
|
Mercurial must be installed to retrieve the latest development source for Pylons. Mercurial packages are also available for Windows, MacOSX, and other OS's.
Check out the latest code:
1 | $ hg clone https://www.knowledgetap.com/hg/pylons-dev Pylons
|
To tell setuptools to use the version you are editing in the Pylons directory:
1
2 | $ cd Pylons
$ python setup.py develop
|
Now you can make changes to the files in the Pylons directory and the code will run exactly as if you had installed a version of the egg with the changes you have made.
Pylons development version (0.9.7) requires configuring three middlewares that earlier versions of Pylons handled automatically. To make your app compatible with both 0.9.6 and the development version, add the following to middleware.py below the "# CUSTOM MIDDLEWARE HERE" line: