Windows-Installer: Vorkompilierte Binaries verwenden

Das pysqlite-Projekt  bietet für die aktuellen Python-Versionen fertige Windows-Installer an:

  1. 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.
     
  2. ZSQLMethods installieren:
    easy_install Products.ZSQLMethods
     
  3. Zope-SQLite-Datenbank-Adapter installieren
    easy_install Products.ZSQLiteDA

Source-Code selbst komplieren

  1. ZSQLMethods installieren:
    easy_install Products.ZSQLMethods
     
  2. ThreadLock installieren:
    ThreadLock muss zur Installation mit einem C-Compiler kompiliert werden.
    Dazu kann Mingw verwendet werden:
    http://sourceforge.net/projects/mingw/files/
     
  3. Eintrag von Mingw in Distutils:
    Add the following lines to \Lib\distutils\distutils.cfg:

    [build]
    compiler=mingw32
     
  4. 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.
     
  5. easy_install ThreadLock
     
  6. easy_install Products.ZSQLiteDA