Re: Re: pyrus woes

From: Date: Tue, 29 Jun 2010 13:49:09 +0000
Subject: Re: Re: pyrus woes
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-53609@lists.php.net to get a copy of this message
On Mon, Jun 28, 2010 at 8:11 PM, Brett Bieber <brett.bieber@gmail.com> wrote: > On Mon, Jun 28, 2010 at 12:59 PM, Evert Pot <evert@filemobile.com> wrote: >>> >>> Also, I noticed that it'll create the .pear directory in $HOME. What >>> about putting it into $PWD instead, or at least letting people decide >>> this? It would be nice to have this per project, self-contained, etc.. >>> This would also imply that a local .pear/ directory is always read >>> first. >> >> I really like this. I think, in general, you would want specific versions and dependencies >> per-project, not per-system (or per-user). Having pear packages by default in a local directory, >> instead of a global one would be a great idea in my opinion. > > This is how Pyrus works. Please read the documentation. > > The ~/.pear directory only tells Pyrus what the last-used local > registry was, and what plugins you have installed for pyrus. Plugins > are not regular packages, they modify the pyrus.phar commands and are > tied to the system where they were installed. (PEAR2_Pyrus_Developer > is a plugin). With multiple mypear calls, it's not so obvious which one is being used now. Is it just the last? And if that is the case, how do I switch around - or how do I make sure that it's using the correct "install" - e.g. is that being done by checking in $PWD? > > Each PACKAGE registry is localized in the directory you set with pyrus > mypear ./vendor, the directory you tell pyrus to install packages in > when it asked you initially, or the path you pass to each command > pyrus ./vendor install PackageName. >

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