Windows-Installer: Vorkompilierte Binaries verwenden
Das pysqlite-Projekt bietet für die aktuellen Python-Versionen fertige Windows-Installer an:
- Aktuelles, zur Python-Version passende DB-API 2.0 interface für SQLite downloaden:
http://code.google.com/p/pysqlite/downloads/list
und exe-Datei ausfhren.
- ZSQLMethods installieren:
easy_install Products.ZSQLMethods
- Zope-SQLite-Datenbank-Adapter installieren
easy_install Products.ZSQLiteDA
Source-Code selbst komplieren
- ZSQLMethods installieren:
easy_install Products.ZSQLMethods
- ThreadLock installieren:
ThreadLock muss zur Installation mit einem C-Compiler kompiliert werden.
Dazu kann Mingw verwendet werden:
http://sourceforge.net/projects/mingw/files/
- Eintrag von Mingw in Distutils:
Add the following lines to \Lib\distutils\distutils.cfg:
[build]
compiler=mingw32
- http://stackoverflow.com/questions%2F8531983/easy-install-u-cython-fails-complaining-about-vcvarsall-bat-and-mno-cygwin
After more some googling, I found Compiling with cython and mingw produces
gcc: error: unrecognized command line option '-mno-cygwin',
which recommends removing -mno-cygwin from C:\Python27\Lib\distutils\cygwinccompiler.py because of this distutils bug.
- easy_install ThreadLock
- easy_install Products.ZSQLiteDA