SQLite-Database-Adapter ZSQLiteDA für Zope-2.13 / Win32 installieren
SQLite bietet einen simplen Ansatz, relationale Datenbank-Anwendungen nahtlos mit Python zu entwickeln. Für Zope gibt es den Dat abase-Adapter ZSQLiteDA.
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:
http://blog.sadphaeton.com/2009/01/20/python-development-windows-part-2-installing-easyinstallcould-be-easier.html
Add the following lines to C:\Programme\Python27\Scripts\zope2135\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