Re: Using Pear in a multi-developer environment

From: Date: Mon, 10 Apr 2006 18:21:07 +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-23612@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 go-pear [1] is exactly what you need. You can fetch it using http://go-pear.org as well. The only part you have to change is the $pfc_packages array, add the packages you need, you can even add package and version using the packagename-version syntax (package-x.y.z). > 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. Store one go-pear per branch. > 3. by default PEAR installs the latest versions of it's core > libraries but my project maybe using some other versions I do not recommend to use your own versions of a pear package. It is a maintenance nightmare. > 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. You only need one thing, a specific go-pear. Eventually a go-pear.phar if you like to bundle the packages in one single file [2], an example script to create a phar is available here [3]. --Pierre [1] http://cvs.php.net/viewcvs.cgi/pearweb/public_html/go-pear?view=markup&rev=1.81 [2] http://cvs.php.net/viewcvs.cgi/pearweb/public_html/go-pear.phar?view=log [3] http://cvs.php.net/viewcvs.cgi/pear-core/make-gopear-phar.php?view=markup&rev=1.12

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