[Biopython-dev] [Bug 2619] Bio.PDB.MMCIFParser component MMCIFlex commented out in setup.py

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Wed Oct 22 09:49:42 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2619





------- Comment #4 from biopython-bugzilla at maubp.freeserve.co.uk  2008-10-22 05:49 EST -------
I've been looking at modifying setup.py, but need to be able to tell if flex is
installed AND if its headers are installed (required to compile the mmCFIG
code).  The following is only a partial solution:

def is_flex_installed():
    """try and work out if flex (and its headers) are installed."""
    if sys.platform.startswith("win") :
        return False
    import commands
    #TODO - This only checks the command line tool, not the headers
    return "not found" not in commands.getoutput("flex --version")


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list