*ë
|4á:c       sß    d  Z    d k Z  e i Z  xF  d o;  y  e i i d  Wn  e j
 o   Pn Xq* W! d k Z d k Z " e e _ % d k Z & d k Z ' y4 ( d k	 l
 Z
 ) d k l Z * d k	 l Z Wn> + e j
 o/ , d GH- d GH. d	 GH/ e i d
  n X4 e d  Z P d   Z ] d e f d     YZ k d e f d     YZ  e
 d d  d d  d d  d d  d d  d h  e d <e d < d h  d d < d d g  d S(    s  Distutils based setup script for Martel.

This uses Distutils (http://python.org/sigs/distutils-sig/) the
standard python mechanism for installing packages. For the easiest
installation just type the command:

  python setup.py install

For more details about the options available from distutils, look at
the 'Installing Python Modules' distutils documentation, available
from:

  http://python.org/sigs/distutils-sig/doc/

Or, if all else fails, feel free to write to the biopython list
at biopython@biopython.org and ask for help.
Ni   s    (   s   setup(   s   install(   s   Commands@   Martel installation requires distutils, avaiable with python 2.0s   or better, or from:s4     http://python.org/sigs/distutils-sig/download.htmli    c    sV   4 E F |   o> G d |  GHH d GHI | GHJ d GHK | o L | GHn n d S(   sY  Check if a program is installed and print a warning message if not.

    This helps users at least know they are missing some installed stuff
    and where to get it when they install Martel.

    Arguments:
    
    o check_library -- a function to check whether or not the specified
    program and version is present, returns 1 if it is, 0 otherwise.

    o name -- the name of the library we are looking for

    o location -- a URL where the library can be downloaded

    o other_messages -- other random messages to print if the library
    is not present (ie. version information, etc...)
    s    
WARNING -- %s is not installed.s   You should install this from:s+   because otherwise Martel will not be usefulN(   s   check_librarys   names   locations   other_messages(   s   names   check_librarys   locations   other_messages(    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys   check_install4 s   
c     s~   P Q y R d k  l }  S d SWn T t j
 o
 U n XV y W d  k }  X d SWn Y t j
 o
 Z n X[ d Sd  S(   N(   s	   TextToolsi   i    (   s   mxs	   TextToolss   ImportError(   s	   TextTools(    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys   check_mxTextToolsP s   s
   my_installc      s   ] d  Z  b c d   Z RS(   sŠ   Override the standard install to check for dependencies.

    This will just run the normal install, and then print warning messages
    if packages are missing.
    c    s-   c e t  i |   h t d t i d  d  S(   Ns   mxTextToolss5   http://www.lemburg.com/files/python/mxExtensions.html(   s   installs   runs   selfs   check_installs   check_mxTextTools(   s   self(    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys   runc s   (   s   __doc__s   run(    (    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys
   my_install] s   	s	   run_testsc      sD   k d  Z  t u d Z w g  Z y d   Z | d   Z  d   Z RS(   så   Run all of the tests for the package.

    This is a automatic test run class to make distutils kind of act like
    perl. With this you can do:

    python setup.py build
    python setup.py install
    python setup.py test
    s1   Automatically run the test suite for the package.c    s
   y z d  S(   N(    (   s   self(    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys   initialize_optionsy s   c    s
   | } d  S(   N(    (   s   self(    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys   finalize_options| s   c    sR     t  i   }  t  i d   d  k }  | i g    t  i |  d  S(   Ns   test(   s   oss   getcwds   this_dirs   chdirs	   run_testss   main(   s   selfs	   run_testss   this_dir(    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys   run s
   (   s   __doc__s   descriptions   user_optionss   initialize_optionss   finalize_optionss   run(    (    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys	   run_testsk s   				s   names   Martels   versions   0.6s   authors>   Dalke Scientific Software, LLC of the The Biopython Consortiums   author_emails   dalke@acm.orgs   urls'   http://www.biopython.org/~dalke/Martel/s   cmdclasss   installs   tests   package_dirs   packages(   s   __doc__s   syss   paths   sys_paths   removes
   ValueErrors   sre_constantss	   sre_parses   oss   distutils.cores   setups   distutils.command.installs   installs   Commands   ImportErrors   exits   Nones   check_installs   check_mxTextToolss
   my_installs	   run_tests(   s   oss	   sre_parses
   my_installs   installs   check_mxTextToolss   Commands   syss   sre_constantss   check_installs	   run_testss   setups   sys_path(    (    s6   /mit/seven/lib/python2.1/site-packages/Martel/setup.pys   ? sB   	 
				