[Bioperl-l] cleanup of tempfiles

Heikki Lehvaslaiho heikki@ebi.ac.uk
Mon, 30 Apr 2001 15:31:19 +0100


Seems to me the real question is how far backward compatible bioperl
should be. 

In my opinion, if the plan is that the next major release is 1.0, we
should really aim for 5.6.0/1 compatibility and simply include into
the release notes a list of extenal dependencies when using previous
versions. 

Securitywise File::Temp has huge advantages over other solutions, so
everyone really should be using it.  

This is said from UNIX/LINUX perspective. I've no idea what is the
situation in PCs and Macs.

	-Heikki


Jason Stajich wrote:
> 
> [not a very exciting topic, but ... ]
> 
> In the event one does not have File::Temp we have implemented our own
> tempfile/tempdir creation.  We attempt to remove all created tempfiles and
> remove tempdirs (with all containing files) which are created.  We do not
> really cleanup a tempdir which contains files at this point because rmdir
> will fail if the dir contains files.
> 
> Solutions:
> o use File::Path's rmtree method to cleanup a dir.  A new dependency.
> o require File::Temp to be installed and get rid of our implementation
> o [sigh] import the rmtree method from File::Path
> 
> Any opinions?  I really just want to go with the 2nd choice, but I know it
> is silly to force people to have File::Temp installed to run bioperl.
> On the other hand, we've already essentially imported File::Temp into
> Root::IO, might as well import rmtree too...
> 
> -Jason
> 
> Jason Stajich
> jason@chg.mc.duke.edu
> Center for Human Genetics
> Duke University Medical Center
> http://www.chg.duke.edu/
> 
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l

-- 
______ _/      _/_____________________________________________________
      _/      _/                      http://www.ebi.ac.uk/mutations/
     _/  _/  _/  Heikki Lehvaslaiho          heikki@ebi.ac.uk
    _/_/_/_/_/  EMBL Outstation, European Bioinformatics Institute
   _/  _/  _/  Wellcome Trust Genome Campus, Hinxton
  _/  _/  _/  Cambs. CB10 1SD, United Kingdom
     _/      Phone: +44 (0)1223 494 644   FAX: +44 (0)1223 494 468
___ _/_/_/_/_/________________________________________________________