[Wellington-pm] CPAN to project lib directory

Lenz Gschwendtner lenz at gschwendtner.eu
Mon Apr 5 19:52:36 PDT 2010


have a look at cpanminus and hack it to your likings and then make this new one a project dependency ... guess that is the fastest path - cpan(the module) is kind of archaic :-)

cheers
lenz

On 6/04/2010, at 2:22 PM, Ewen McNeill wrote:

> Out of interest has anyone found a way to make the "cpan" command (or "perl -MCPAN -e shell") accept project-specific arguments?  The use case is that I want to create a library directory for a given project (relative to the project base) which contains some additional modules from CPAN, which I want to version with the project.  "cpan" has the facility to install into a specified base directory, which seems ideal.
> 
> Unfortunately the _configuration_ of that in "cpan" appears to be a per-user parameter, from a file stored in the user home directory, which makes for poor usability (either every user has to save the configuration settings when working on the project and remember to switch them next time they're working on something else.  Rather than having something specified in the project directory itself.
> 
> (In an ideal world -- eg, last time I designed a feature like this -- one would look in the project for per-project configuration, in the user directory for per-user configuration, and then for system-wide configuration, in that order.  But I can't see how to make "cpan" do that.)
> 
> Ewen
> _______________________________________________
> Wellington-pm mailing list
> Wellington-pm at pm.org
> http://mail.pm.org/mailman/listinfo/wellington-pm



More information about the Wellington-pm mailing list