Re: [PEAR-DEV] Re: [PEAR-QA] Re: [PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT]Structures_DataGrid-0.7.0 (beta) Released.
by Greg Beaver other posts by this author
Jun 19 2006 2:23PM messages near this date
Re: [PEAR-DEV] Re: [PEAR-QA] Re: [PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT]Structures_DataGrid-0.7.0 (beta) Released.
|
Re: [PEAR-DEV] Re: [PEAR-QA] Re: [PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT]Structures_DataGrid-0.7.0 (beta) Released.
Olivier Guilyardi wrote:
> Greg Beaver wrote:
>
> > Olivier Guilyardi wrote:
> >
> >>
> >> - a conditional dependency, to do : if php < 5 then require php_compat
> >
> >
> > This is too complicated from the installer end. You can, of course,
> > make it so that the file containing the function is only installed if
> > PHP < 5.
>
>
> Do you mean "only installed" or "only require()'d" ? The former is
> precisely what I would call a "conditional dependency". Is this possible ?
The file must be contained within the package (i.e. not a remote
conditional dependency), but yes. You use an <installcondition> within
<phprelease> for that task.
> Another point, that I may post a feature request for :
>
> We have unbundled all drivers from Structures_DataGrid, and to be gentle
> with users' hard drives we chose to make all drivers optional, as in MDB2.
>
> But, that makes a big difference with prior releases, when people just
> needed to install one package to get something working. Now, it won't
> work until you install at least a rendering and a datasource driver.
>
> The best thing to ease the upgrade, IMO, would be that the pear
> installer issues warnings directly to standard output. A new <warning>
> like tag in package xml v2, where we could put whatever we want, would
> be precious in this regard.
>
> What do you think ?
Use a conditional install group named "default" that requires the
default driver and renderer.
<group name="default" hint="standard Structure_Datagrid setup">
<package>
<name> Structures_Datagrid_DriverWhatever</name>
<channel> pear.php.net</channel>
</package>
<package>
<name> Structures_Datagrid_RendererWhatever</name>
<channel> pear.php.net</channel>
</package>
</group>
This will be automatically installed unless the user explicitly requests
another installation group.
In other words, no need for a feature request.
Greg
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Olivier Guilyardi
Olivier Guilyardi
Justin Patrin
Olivier Guilyardi
Pierre
Pierre
Olivier Guilyardi
Greg Beaver
Olivier Guilyardi
Greg Beaver
Olivier Guilyardi
Greg Beaver
Olivier Guilyardi
Pierre
Joe Stump
Pierre
Joe Stump
Pierre
Olivier Guilyardi
|