pyramidを使用してwebアプリケーション作成 1

  • 開発に必要なパッケージをインストールする
$ ./bin/easy_install docutils nose coverage zope.sqlalchemy SQLAlchemy pyramid_tm
Searching for docutils
Reading http://pypi.python.org/simple/docutils/
Reading http://docutils.sourceforge.net/
Best match: docutils 0.8.1
Downloading http://prdownloads.sourceforge.net/docutils/docutils-0.8.1.tar.gz?download
Processing docutils-0.8.1.tar.gz
Running docutils-0.8.1/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-GcxniP/docutils-0.8.1/egg-dist-tmp-_HQO9X
warning: no files found matching 'MANIFEST'
warning: no previously-included files matching '.cvsignore' found under directory '*'
warning: no previously-included files matching '*.pyc' found under directory '*'
warning: no previously-included files matching '*~' found under directory '*'
warning: no previously-included files matching '.DS_Store' found under directory '*'
zip_safe flag not set; analyzing archive contents...
docutils.parsers.rst.directives.misc: module references __file__
docutils.writers.html4css1.__init__: module references __file__
docutils.writers.latex2e.__init__: module references __file__
docutils.writers.odf_odt.__init__: module references __file__
docutils.writers.pep_html.__init__: module references __file__
docutils.writers.s5_html.__init__: module references __file__
Adding docutils 0.8.1 to easy-install.pth file
Installing rst2html.py script to /Users/******/Development/Python/env/bin
Installing rst2latex.py script to /Users/******/Development/Python/env/bin
Installing rst2man.py script to /Users/******/Development/Python/env/bin
Installing rst2odt.py script to /Users/******/Development/Python/env/bin
Installing rst2odt_prepstyles.py script to /Users/******/Development/Python/env/bin
Installing rst2pseudoxml.py script to /Users/******/Development/Python/env/bin
Installing rst2s5.py script to /Users/******/Development/Python/env/bin
Installing rst2xetex.py script to /Users/******/Development/Python/env/bin
Installing rst2xml.py script to /Users/******/Development/Python/env/bin
Installing rstpep2html.py script to /Users/******/Development/Python/env/bin

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/docutils-0.8.1-py2.7.egg
Processing dependencies for docutils
Finished processing dependencies for docutils
Searching for nose
Reading http://pypi.python.org/simple/nose/
Reading http://somethingaboutorange.com/mrl/projects/nose/
Reading http://readthedocs.org/docs/nose/
Best match: nose 1.1.2
Downloading http://pypi.python.org/packages/source/n/nose/nose-1.1.2.tar.gz#md5=144f237b615e23f21f6a50b2183aa817
Processing nose-1.1.2.tar.gz
Running nose-1.1.2/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-juECD2/nose-1.1.2/egg-dist-tmp-3MVuUb
Adding nose 1.1.2 to easy-install.pth file
Installing nosetests script to /Users/******/Development/Python/env/bin
Installing nosetests-2.7 script to /Users/******/Development/Python/env/bin

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg
Processing dependencies for nose
Finished processing dependencies for nose
Searching for coverage
Reading http://pypi.python.org/simple/coverage/
Reading http://nedbatchelder.com/code/modules/coverage.html
Reading http://nedbatchelder.com/code/coverage
Reading http://nedbatchelder.com/code/coverage/3.5b1
Reading http://nedbatchelder.com/code/coverage/3.4b1
Reading http://nedbatchelder.com/code/coverage/3.4b2
Reading http://nedbatchelder.com/code/coverage/3.5.1b1
Best match: coverage 3.5.1
Downloading http://pypi.python.org/packages/source/c/coverage/coverage-3.5.1.tar.gz#md5=410d4c8155a4dab222f2bc51212d4a24
Processing coverage-3.5.1.tar.gz
Running coverage-3.5.1/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-wk9UV6/coverage-3.5.1/egg-dist-tmp-Caike7
no previously-included directories found matching 'test'
Adding coverage 3.5.1 to easy-install.pth file
Installing coverage script to /Users/******/Development/Python/env/bin

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/coverage-3.5.1-py2.7-macosx-10.7-intel.egg
Processing dependencies for coverage
Finished processing dependencies for coverage
Searching for zope.sqlalchemy
Reading http://pypi.python.org/simple/zope.sqlalchemy/
Best match: zope.sqlalchemy 0.7
Downloading http://pypi.python.org/packages/source/z/zope.sqlalchemy/zope.sqlalchemy-0.7.tar.gz#md5=dcfed33a03ea009501f4505802ab8d01
Processing zope.sqlalchemy-0.7.tar.gz
Running zope.sqlalchemy-0.7/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-cNmGgO/zope.sqlalchemy-0.7/egg-dist-tmp-NnsA8I
Adding zope.sqlalchemy 0.7 to easy-install.pth file

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/zope.sqlalchemy-0.7-py2.7.egg
Processing dependencies for zope.sqlalchemy
Searching for transaction
Reading http://pypi.python.org/simple/transaction/
Reading http://www.zope.org/Products/ZODB
Best match: transaction 1.2.0
Downloading http://pypi.python.org/packages/source/t/transaction/transaction-1.2.0.tar.gz#md5=48bb47e69df085d01ebec185705b3a7f
Processing transaction-1.2.0.tar.gz
Running transaction-1.2.0/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-rHmhR6/transaction-1.2.0/egg-dist-tmp-2suRwV
Adding transaction 1.2.0 to easy-install.pth file

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/transaction-1.2.0-py2.7.egg
Searching for SQLAlchemy>=0.5.1
Reading http://pypi.python.org/simple/SQLAlchemy/
Reading http://www.sqlalchemy.org
Best match: SQLAlchemy 0.7.4
Downloading http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.7.4.tar.gz#md5=731dbd55ec9011437a842d781417eae7
Processing SQLAlchemy-0.7.4.tar.gz
Running SQLAlchemy-0.7.4/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-zzSCTd/SQLAlchemy-0.7.4/egg-dist-tmp-6cIVTx
warning: no files found matching '*.jpg' under directory 'doc'
no previously-included directories found matching 'doc/build/output'
zip_safe flag not set; analyzing archive contents...
Adding SQLAlchemy 0.7.4 to easy-install.pth file

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-macosx-10.7-intel.egg
Finished processing dependencies for zope.sqlalchemy
Searching for SQLAlchemy
Best match: SQLAlchemy 0.7.4
Processing SQLAlchemy-0.7.4-py2.7-macosx-10.7-intel.egg
SQLAlchemy 0.7.4 is already the active version in easy-install.pth

Using /Users/******/Development/Python/env/lib/python2.7/site-packages/SQLAlchemy-0.7.4-py2.7-macosx-10.7-intel.egg
Processing dependencies for SQLAlchemy
Finished processing dependencies for SQLAlchemy
Searching for pyramid-tm
Reading http://pypi.python.org/simple/pyramid_tm/
Reading http://docs.pylonsproject.org
Best match: pyramid-tm 0.3
Downloading http://pypi.python.org/packages/source/p/pyramid_tm/pyramid_tm-0.3.tar.gz#md5=e54274f7b33614d7e0254f6c2c5ac206
Processing pyramid_tm-0.3.tar.gz
Running pyramid_tm-0.3/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-mnFaAQ/pyramid_tm-0.3/egg-dist-tmp-4DyNrU
Adding pyramid-tm 0.3 to easy-install.pth file

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/pyramid_tm-0.3-py2.7.egg
Processing dependencies for pyramid-tm
Finished processing dependencies for pyramid-tm
  • pasteを追加

※必要なし。プロジェクトを作成する場合はbin/pcreateを使う

$ ./bin/easy_install paste
Searching for paste
Reading http://pypi.python.org/simple/paste/
Reading http://pythonpaste.org
Best match: Paste 1.7.5.1
Downloading http://pypi.python.org/packages/source/P/Paste/Paste-1.7.5.1.tar.gz#md5=7ea5fabed7dca48eb46dc613c4b6c4ed
Processing Paste-1.7.5.1.tar.gz
Running Paste-1.7.5.1/setup.py -q bdist_egg --dist-dir /var/folders/5g/0fbkx7t9129286wsbpgqf_ch0000gn/T/easy_install-bh5KX8/Paste-1.7.5.1/egg-dist-tmp-0SQyaH
warning: no previously-included files matching '*' found under directory 'docs/_build/_sources'
Adding Paste 1.7.5.1 to easy-install.pth file

Installed /Users/******/Development/Python/env/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg
Processing dependencies for paste
Finished processing dependencies for paste