Mercurial & Sphinx

クライアントPC (Windows) へのインストール

«  Mercurial & Sphinx   ::   Contents   ::   クライアントPC (UNIX) へのインストール  »

クライアントPC (Windows) へのインストール

LastUpdated: $IsoDate$

Mercurialのインストール

cygwin package:

[Devel]->[mercurial]

Sphinxのインストール

python 2系列のインストール

入手

http://python.org/download/releases/2.7.1/

  • Windows x86 MSI Installer (2.7.1) (sig)

環境変数設定

設定:

マイコンピュータ > プロパティ > 詳細設定 > 環境変数
 Path追加: ;C:\Python27;C:\Python27\Scripts;C:\Python27\Tools\Scripts

動作確認

command input:

> python
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

>>> (ctrl + z, enter)

easy-installのインストール

install

command input:

> set HTTP_PROXY=http://$user:$pass@proxysv:80
> cd c:\
> python ez_setup.py

result:

Downloading http://pypi.python.org/packages/2.7/s/setuptool/setuptools-0.6c11-py2.7.egg
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to c:\python27\lib\site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
Installing easy_install.exe.manifest script to C:\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\Python27\Scripts
Installing easy_install-2.7.exe script to C:\Python27\Scripts
Installing easy_install-2.7.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11

sphinxのインストール

install

command input:

> easy_install sphinx

result:

Searching for sphinx
Reading http://pypi.python.org/simple/sphinx/
Reading http://sphinx.pocoo.org/
Best match: Sphinx 1.0.7
Downloading http://pypi.python.org/packages/2.7/S/Sphinx/Sphinx-1.0.7 py2.7.egg#
md5=1321a3888d4fad656a5ede5838686e12
Processing Sphinx-1.0.7-py2.7.egg
creating c:\python27\lib\site-packages\Sphinx-1.0.7-py2.7.egg
Extracting Sphinx-1.0.7-py2.7.egg to c:\python27\lib\site-packages
Adding Sphinx 1.0.7 to easy-install.pth file
Installing sphinx-build-script.py script to C:\Python27\Scripts
Installing sphinx-build.exe script to C:\Python27\Scripts
Installing sphinx-build.exe.manifest script to C:\Python27\Scripts
Installing sphinx-quickstart-script.py script to C:\Python27\Scripts
Installing sphinx-quickstart.exe script to C:\Python27\Scripts
Installing sphinx-quickstart.exe.manifest script to C:\Python27\Scripts
Installing sphinx-autogen-script.py script to C:\Python27\Scripts
Installing sphinx-autogen.exe script to C:\Python27\Scripts
Installing sphinx-autogen.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\sphinx-1.0.7-py2.7.egg
Processing dependencies for sphinx
Searching for docutils>=0.5
Reading http://pypi.python.org/simple/docutils/
Reading http://docutils.sourceforge.net/
Best match: docutils 0.7
Downloading http://prdownloads.sourceforge.net/docutils/docutils0.7.tar.gz?download
Processing docutils-0.7.tar.gz
Running docutils-0.7\setup.py -q bdist_egg --dist-dir c:\docume~\hiroka~1.hat\locals~1\temp\easy_install-ti8z03\docutils-0.7\egg-dist-tmp-ltgbpr
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.newlatex2e.__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.7 to easy-install.pth file
Installing rst2html.py script to C:\Python27\Scripts
Installing rst2latex.py script to C:\Python27\Scripts
Installing rst2man.py script to C:\Python27\Scripts
Installing rst2newlatex.py script to C:\Python27\Scripts
Installing rst2odt.py script to C:\Python27\Scripts
Installing rst2odt_prepstyles.py script to C:\Python27\Scripts
Installing rst2pseudoxml.py script to C:\Python27\Scripts
Installing rst2s5.py script to C:\Python27\Scripts
Installing rst2xml.py script to C:\Python27\Scripts
Installing rstpep2html.py script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\docutils-0.7-py2.7.egg
Searching for Jinja2>=2.2
Reading http://pypi.python.org/simple/Jinja2/
Reading http://jinja.pocoo.org/
Best match: Jinja2 2.5.5
Downloading http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.5.5.tar.gz#
md5=83b20c1eeb31f49d8e6392efae91b7d5
Processing Jinja2-2.5.5.tar.gz
Running Jinja2-2.5.5\setup.py -q bdist_egg --dist-dir c:\docume~1 \hiroka~1.hat\locals~1\temp\easy_install-grxklv\Jinja2-2.5.5\egg-dist-tmp-phg7fi
warning: no previously-included files matching '*' found under directory 'docs\_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
Adding jinja2 2.5.5 to easy-install.pth file

Installed c:\python27\lib\site-packages\jinja2-2.5.5-py2.7.egg
Searching for Pygments>=0.8
Reading http://pypi.python.org/simple/Pygments/
Reading http://pygments.org/
Reading http://pygments.pocoo.org/
Best match: Pygments 1.4
Downloading http://pypi.python.org/packages/2.7/P/Pygments/Pygments1.4-py2.7.eg
g#md5=acbdde4dae30efaba8cfa86dcb6070f2
Processing Pygments-1.4-py2.7.egg
creating c:\python27\lib\site-packages\Pygments-1.4-py2.7.egg
Extracting Pygments-1.4-py2.7.egg to c:\python27\lib\site-packages
Adding Pygments 1.4 to easy-install.pth file
Installing pygmentize-script.py script to C:\Python27\Scripts
Installing pygmentize.exe script to C:\Python27\Scripts
Installing pygmentize.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\pygments-1.4-py2.7.egg
Finished processing dependencies for sphinx

動作確認

command input:

> sphinx-quickstart

result:

Welcome to the Sphinx 1.0.7 quickstart utility.

Please enter values for the following settings (just press Enter to
accept a default value, if one is given in brackets).

Enter the root path for documentation.
> Root path for the documentation [.]:

command input:

ctrl + cで中断する。

Sphinx 拡張のインストール

sphinxjp.themecore

command input:

> sudo easy_install sphinxjp.themecore

遷移図 生成拡張 (blockdiag)

> sudo easy_install sphinxcontrib-blockdiag

シーケンス図 生成拡張 (seqdiag)

> sudo easy_install sphinxcontrib-seqdiag

アクティビティ図 生成拡張 (actdiag)

> sudo easy_install sphinxcontrib-actdiag

構成図 生成拡張 (nwdiag)

> sudo easy_install sphinxcontrib-nwdiag

«  Mercurial & Sphinx   ::   Contents   ::   クライアントPC (UNIX) へのインストール  »