biopython/biopython — pull request #31 by lennax (2012-03-21 06:28:37+00:00)
Title: Fix flex library dependency of MMCIFlex; closes 2619

(All filenames are relative to Bio/PDB)

A small modification of the flex input (mmCIF/mmcif.lex) allows flex to produce generated C (mmCIF/lex.yy.c) that can be compiled without the flex header. Flex generated on Debian stable.

This allows the MMCIFlex module to be built on any platform that supports C modules. A pure Python implementation is in the works.

Further modifications to mmCIF/mmcif.lex and mmCIF/MMCIFlexmodule.c -- function prototype corrections to suppress compiler warnings.

MMCIF2Dict was producing an invalid dict, so I've changed it to subclass dict and it now functions as expected.

Module tested on Debian stable and Mac OS X 10.6.8 Snow Leopard (both Python 2.6.7).