Re: Using Pear in a multi-developer environment

From: Date: Mon, 10 Apr 2006 17:40:24 +0000
Subject: Re: Using Pear in a multi-developer environment
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23611@lists.php.net to get a copy of this message
On 4/10/06, Nikhil G. Daddikar <ngd@celoxis.com> wrote: > Hello, > > Can anyone explain how to use PEAR in a multi-development environment? > Is each developer expected to have his/her own installation of PEAR? The > problem is that if each developer has his own version, then: > > 1. need to have some mechanism to indicate which packages to install > when a developer starts out > 2. need to have one PEAR installation per source tree branch. i.e. > for versions 1.0, 2.0 of my project, I will have 1 pear each. > 3. by default PEAR installs the latest versions of it's core > libraries but my project maybe using some other versions > > Ideally I would have liked to make PEAR part of my project source tree > and let users manage PEAR as part of checked-out version. This will > solve a lot of problems. I am eager to hear how you guys approach these > issues. > Generally each *system* should have its own PEAR installation. If you don't have root access on a system you can install it yourself locally. I personally don't think that including it in your projects is a great idea as this causes you to have to deal with updating PEAR packages and handling possible path issues and such. Let each developer update their own PEAR installation or have a system-wide installation that everyone uses. As for "different projects using different versions" this should really never be the case unless you're relying on a bug or mis-feature of a version of a package which is later fixed or if you're using an alpha or beta package which changed its API and you're not going to update your code. All stable PEAR packages are required to keep backwards compatability in future versions so upgrading should never break anything. If a package does break something on an upgrade it is a bug and shouldbe reported. -- Justin Patrin

« previous php.pear.general (#23611) next »