PythonのWebフレームワークのTurboGearsに入門してみた。

GentooLinuxでのインストールは2点だけ変える必要がある。
dev-python/turbogearsは~x86にMASKがかかっているので
/etc/portage/package.keywordsにとするかコマンドラインにてACCEPT_KEYWORDS=~x86としてやればよい。

# ACCEPT_KEYWORDS=~x86 USE="doc examples mysql" emerge -vp turbogears
  ※ ついでにmysqlに対応とdoc、examplesをUSEに入れる。

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-python/setuptools-0.6_rc5  240 kB 
[ebuild  N    ] dev-python/elementtree-1.2.6  41 kB 
[ebuild  N    ] dev-python/docutils-0.4-r1  USE="-emacs -glep" 1,209 kB 
[ebuild  N    ] dev-python/cheetah-2.0_rc8  210 kB 
[ebuild  N    ] dev-python/cherrypy-2.2.1  USE="doc" 215 kB 
[ebuild  N    ] dev-python/configobj-4.4.0  USE="doc" 168 kB 
[ebuild  N    ] dev-python/formencode-0.7.1  135 kB 
[ebuild  N    ] dev-python/simplejson-1.7.1  USE="-test" 59 kB 
[ebuild  N    ] dev-python/kid-0.9.5  USE="doc examples" 127 kB 
[ebuild  N    ] dev-python/pyprotocols-1.0_pre2082  122 kB 
[ebuild  N    ] dev-python/mysql-python-1.2.2  86 kB 
[ebuild  N    ] dev-python/genshi-0.4  USE="examples" 211 kB 
[ebuild  N    ] dev-python/celementtree-1.0.5  USE="doc" 92 kB 
[ebuild  N    ] dev-python/turbocheetah-0.9.5  USE="-test" 4 kB 
[ebuild  N    ] dev-python/pudge-0.1.3  USE="doc" 61 kB 
[ebuild  N    ] dev-python/ruledispatch-0.5_pre2115  94 kB 
[ebuild  N    ] dev-python/turbokid-0.9.9  USE="-test" 4 kB 
[ebuild  N    ] dev-python/sqlobject-0.8.1  USE="doc mysql -firebird -postgres -sqlite" 230 kB 
[ebuild  N    ] dev-python/buildutils-0.1.2  USE="doc -test" 42 kB 
[ebuild  N    ] dev-python/turbojson-1.0  USE="-test" 3 kB 
[ebuild  N    ] dev-python/paste-1.2.1  USE="doc -flup -openid" 343 kB 
[ebuild  N    ] dev-python/pastedeploy-1.1  USE="doc -test" 27 kB 
[ebuild  N    ] dev-python/pastescript-1.1  USE="doc -test" 80 kB 
[ebuild  N    ] dev-python/turbogears-1.0.1  USE="-test" 736 kB 

Turbogearsで利用するSQLiteが足らなかったので追加

# ACCEPT_KEYWORDS="~x86" USE="sqlite" emerge -vp sqlobject 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-db/sqlite-2.8.16-r4  USE="nls -doc -tcl" 959 kB 
[ebuild  N    ] dev-python/pysqlite-1.0.1  41 kB 
[ebuild   R   ] dev-python/sqlobject-0.8.1  USE="sqlite* -doc* -firebird -mysql* -postgres" 0kB 

SQLiteを入れたのに、なぜかpysqliteが入っていないので、それも追加

# emerge -vp pysqlite
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] dev-db/sqlite-3.3.5-r1  USE="-debug -doc -nothreadsafe -tcl" 1,613kB 
[ebuild  NS   ] dev-python/pysqlite-2.3.1  78 kB 

結局まとめると以下のパッケージを準備すればOK