Re: optional requirements

From: Date: Thu, 20 Jun 2002 12:27:43 +0000
Subject: Re: optional requirements
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7234@lists.php.net to get a copy of this message
(Martin) > I just thought of having "optional dependencies" in PEAR packages. > Example: A package provides a freaky caching feature that is used under > special circumstances. For the normal package usage it is not necessary > to have Cache installed, but in some rare cases it actually is. > At such a point it would be good to have the possibility to mark a > dependency optional: > <deps> > <dep type="pkg" rel="ge" version="1.0" > optional>Cache</dep> > </deps> > During the package installation the user will be asked if he also wants > to install the optional packages to make all features of the package > available. If he does not chose to install them, the basic functions of > the package will work as expected, but he may not be able to use some > advanced stuff. > Comments? Wonderfull. For example in the current system : Cache packages don't really need Net_URL or Net_Socket but if you want to use Cache/HTTP_Request (included with the Cache package), you need them. Fabien

« previous php.pear.dev (#7234) next »