cygwin上にSphinxをインストール

Cygwin 上に Sphinx をインストールしたときのメモです。

python の pip がインストールされていない場合はインストールしておきます。

 

pip コマンドを使って Sphinx をインストール

$ pip install sphinx
Downloading/unpacking sphinx
  Downloading Sphinx-1.2.2.tar.gz (3.1MB): 3.1MB downloaded
  Running setup.py egg_info for package sphinx

    no previously-included directories found matching 'doc/_build'
Downloading/unpacking Pygments>=1.2 (from sphinx)
  Downloading Pygments-1.6.tar.gz (1.4MB): 1.4MB downloaded
  Running setup.py egg_info for package Pygments
~ 省略 ~
    building 'markupsafe._speedups' extension
    gcc -fno-strict-aliasing -ggdb -O2 -pipe -fdebug-prefix-map=/home/jt/rel/python-2.7.3-1/python-2.7.3-1/build=/usr/src/debug/python-2.7.3-1 -fdebug-prefix-map=/home/jt/rel/python-2.7.3-1/python-2.7.3-1/src/Python-2.7.3=/usr/src/debug/python-2.7.3-1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/python2.7 -c markupsafe/_speedups.c -o build/temp.cygwin-1.7.24-i686-2.7/markupsafe/_speedups.o
    gcc -shared -Wl,--enable-auto-image-base -L. build/temp.cygwin-1.7.24-i686-2.7/markupsafe/_speedups.o -L/usr/lib/python2.7/config -lpython2.7 -o build/lib.cygwin-1.7.24-i686-2.7/markupsafe/_speedups.dll
Successfully installed sphinx Pygments docutils Jinja2 markupsafe
Cleaning up...

あとは、Sphinxの普通の使い方と同じはず。 sphinx-quickstart コマンドでプロジェクトを適当に作成すれば使えます。

タイトルとURLをコピーしました