[BioPython] (fwd) Python module for DNA to amino acid and reversecomplement translation.

Jeffrey Chang jchang@SMI.Stanford.EDU
Mon, 25 Sep 2000 11:59:02 -0700 (PDT)


This is actually what happens.  It'll load the C extensions if they exist,
but fall back on the pure python version if they don't.  The problem is
that distutils doesn't make a big enough deal if the compile fails, so
that if the installer isn't paying attention, they could be running the
slow version and not know it.

Jeff


On Mon, 25 Sep 2000, Ewan Birney wrote:

> 
> 
> C Extension stuff.
> 
> Over in Esnembl, I had to write some Perl C extensions for performance.
> Using Pelr's run time loading system, I managed to have this "dissappear"
> from the user: ie, the system attempt to load in the C extensions: if
> there were there, it used them by default. If not, iin fell back on perl.
> The user was given ultimate control (forcing  perl use if necessary).
> 
> 
> My suggestion would be to package up the C code as a separate package, but
> have this "run time loader" system built into the main package. This
> should be doable withn python.
> 
> 
> Reminds me of the web team's request for optimisation of the ensembl
> object layer. They wanted to have the method call:
> 
> 
> 	$database->go_faster(1);
> 
> to work ;) 
> 
> 
> 
> 
> -----------------------------------------------------------------
> Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
> <birney@ebi.ac.uk>. 
> -----------------------------------------------------------------
> 
> _______________________________________________
> BioPython mailing list  -  BioPython@biopython.org
> http://biopython.org/mailman/listinfo/biopython
>