Re: Problems w/ "pear install <URL>"
| From: | Jesus M. Castagnetto | Date: | Tue, 23 Apr 2002 18:08:10 +0000 |
| Subject: | Re: Problems w/ "pear install <URL>" | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5747@lists.php.net to get a copy of this message | ||
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;
case 'doc':
$dest_dir = $this->config->get('doc_dir') .
DIRECTORY_SEPARATOR . $this->pkginfo['package'];
break;
case 'extsrc':
// don't install test files for now
$this->log(2, "$file: no support for building extensions yet");
return true;
case 'php':
$dest_dir = $this->config->get('php_dir');
break;
case 'script': {
$dest_dir = $this->config->get('bin_dir');
break;
}
default:
break;
}
...
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.
>
> Tomas V.V.Cox
=====
--- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
Research:
http://metallo.scripps.edu/
Personal: http://www.castagnetto.org/
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/