動機
CygwinでDjangoの開発環境を作りたいと思ったけど,パッケージにpysqliteがなかったんで自前でインストールした.
方法
安定版のソースをもってくる.
その後は展開してセットアップスクリプトを走らせるだけ.基本的に,pysqlite-2.x.x/doc/install-source.txtに書いてある.
# wget http://initd.org/pub/software/pysqlite/releases/2.4/2.4.1/pysqlite-2.4.1.tar.gz # tar xzf pysqlite-2.4.1.tar.gz # cd pysqlite-2.4.1 # python setup.py build # python setup.py install # cd ~ # python Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> from pysqlite2 import test >>> test.test() ....................................................................... ---------------------------------------------------------------------- Ran 190 tests in 0.573s OK >>>
無事pysqliteのインストール完了.
まとめ
楽ちんでした.