Re: Problems w/ "pear install <URL>"

From: Date: Tue, 23 Apr 2002 23:25:07 +0000
Subject: Re: Problems w/ "pear install <URL>"
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5753@lists.php.net to get a copy of this message
On Wed, 2002-04-24 at 00:50, Tomas V.V.Cox wrote: > "Jesus M. Castagnetto" wrote: > > > > Hi Tomas > > > > --- "Tomas V.V.Cox" <cox@idecnet.com> wrote: > > > "Jesus M. Castagnetto" wrote: > > [...snip...] > > > > Tnxs, I forgot that. I did it and now the package is available for > > > download. > > > > One problem though, when I do: > > > > > > > > pear install > > > > http://pear.php.net/get/Science_Chemistry > > > > > > > > The .php files are installed OK, but the example structures are missing in > > > > $PEAR_INSTALL/Science/Chemistry/test/ (all the .xyz, .pdb and .cml files) > > > > > > > > I had not looked at PEAR/Installer.php yet, so I have not idea what the > > > problem > > > > is yet. > > > > > > > > > > Hi Jesus, long time without seeing you :) > > > > Yep, finally I got some free time in between papers and grants and other random > > scientific stuff ;-) > > > > > Files marked with role "test" are not installed by the pear command. If > > > your package need them, mark it as "data" or "doc" (doc files are > > > installed in a common pear doc dir != PEAR_INSTALL_DIR). > > > > > > > I changed package.xml to read: > > > > <dir name="test" role="data"> > > <file role="php">testChem.php</file> > > <file role="php">testPDB.php</file> > > <file role="php">xyz2cml.php</file> > > <file role="data">1hca.pdb</file> > > <file role="data">his.pdb</file> > > <file role="data">his.xyz</file> > > <file role="data">lys.pdb</file> > > <file role="data">lys.xyz</file> > > <file role="data">small.pdb</file> > > <file role="data">water.cml</file> > > </dir> > > > > But still, no .xyz, .pdb or .cml in Science/Chemistry/test, after trying: > > > > pear upgrade http://pear.php.net/get/Science_Chemistry > > > > Just to be sure I did an uninstall (also removed manually the Science dir and > > check the .registry dir too) and then a clean install, and still the files are > > missing. I did see that in the latest PEAR/Installer.php there are the > > following lines: > > ... > > switch ($atts['role']) { > > case 'test': case 'data': case 'ext': > > // don't install test files for now > > $this->log(2, "$file: $atts[role] file not installed yet"); > > return true; > > > > so a 'role="data"' will not work, using an older version of > > PEAR/Installer.php, > > (i.e. the one bundled w/ PHP 4.1.2) it will work, because the logic is > > different. > > Ah ok, I missed that change. +1 for getting back "data" to the installed > files. Stig? Agreed. But where? We're already using autoconf's $datadir as include root (PREFIX/share/pear). Maybe we should append "-data" to $datadir so data files end up in PREFIX/share/pear-data? - Stig

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