Install and Setup Pylons on Gentoo

Prerequisite

Python

# emerge -pv python

dev-python/ctypes

Make sure you have this package dev-python/ctypes installed:

# emerge -pv dev-python/ctypes

If this package is missing, you will get an error message when starting paste:

[paste.httpserver.ThreadPool] Cannot use kill_thread_limit as ctypes/killthread is not available

easy_install

# wget http://peak.telecommunity.com/dist/ez_setup.py

Install Pylons

Login as sudo. Then do the following:

# python ez_setup.py Pylons==0.9.6.1

Reference: http://wiki.pylonshq.com/display/pylonsdocs/Installing+Pylons

Additional Useful Packages

PyXML - a collection of libraries to process XML with Python

# emerge dev-python/pyxml

MySQL

To use MySQL as the database in Pylons, you need the package

# emerge mysql-python