setuptools¶ setuptoolsの目的¶ setuptoolsはPython 標準の distutils を拡張しています。 この拡張によってeggを作ったり使ったりできるようになります。 一番有名な利用方法は、easy_installコマンドでしょう。 easy_install を使うために ez_setup.py を実行したことがある人も多いはず。 ez_setup.py を行うと、Pythonのsite-packagesに setuptools がインストール されます。 easy_install コマンドは easy_install aodag.util 等と書くと、 PyPI(Python Package Index)から自動的に aodag.util パッケージを探してきて site-packages にインストールしてくれます。 distribute¶ setup
setuptools QuickStart¶ setup.py¶ てきとーなフォルダを作ってsetup.pyを以下のように作成してください: from distutils.core import setup setup( name='foo', version='0.0.1', )
zc.buildout¶ buildoutの目的¶ buildout はPythonベースのビルドシステムです。パーツという単位で アプリケーションを作成、組み立て、配置などを行い、非Pythonベースのものも 構築可能です。 virtualenvはPython本体とは別の箱庭を作りますが、箱庭に何をどう置くかは virtualenv環境毎に人間の手で行う必要があります。例えばSphinxをeasy_install すれば関連パッケージ類(Pygmentsやdocutils)は自動的にインストールされますが、 Sphinx拡張パッケージなどは別途easy_installする必要があります。 buildoutはそういった任意のパッケージインストールや、recipeを使って 様々な環境を作る事が出来ます。例えばTracやBuildBot環境も作成出来ます。 ただし、buildoutでは Pyt
Google App Engine (GAE/py) の開発環境をつくる¶ appfy.recipe.gae のサンプル¶ buildout.cfg: [buildout] parts = app_lib gae_sdk gae_tools [app_lib] # Sets the library dependencies for the app. recipe = appfy.recipe.gae:app_lib lib-directory = app/distlib use-zipimport = false # Define the libraries. eggs = tipfy # Don't copy files that match these glob patterns. ignore-globs = *.c *.pyc *.pyo */test */tests */test
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く