From perl at ewen.mcneill.gen.nz Mon Apr 5 19:22:46 2010 From: perl at ewen.mcneill.gen.nz (Ewen McNeill) Date: Tue, 06 Apr 2010 14:22:46 +1200 Subject: [Wellington-pm] CPAN to project lib directory Message-ID: <4BBA9AF6.1050601@ewen.mcneill.gen.nz> 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 From lenz at gschwendtner.eu Mon Apr 5 19:52:36 2010 From: lenz at gschwendtner.eu (Lenz Gschwendtner) Date: Tue, 6 Apr 2010 14:52:36 +1200 Subject: [Wellington-pm] CPAN to project lib directory In-Reply-To: <4BBA9AF6.1050601@ewen.mcneill.gen.nz> References: <4BBA9AF6.1050601@ewen.mcneill.gen.nz> Message-ID: <640E06B0-DE82-4366-8F6F-7ED53EE1D48E@gschwendtner.eu> 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 From grant at mclean.net.nz Mon Apr 5 20:44:20 2010 From: grant at mclean.net.nz (Grant McLean) Date: Tue, 06 Apr 2010 15:44:20 +1200 Subject: [Wellington-pm] Meeting Next Week Message-ID: <1270525460.16140.6.camel@putnam.wgtn.cat-it.co.nz> Hi Mongers The next meeting of Wellington Perl Mongers is scheduled for next Tuesday (April 13th). However: 1. I haven't had *any* offers to speak yet 2. I'm going to be on holiday in Christchurch next week If someone does want to have a technical meeting as usual and speakers can be found then I'm sure we can find someone at Catalyst to set up the room etc. Alternatively, we could designate the April meeting a 'social' instead and name a venue to meet for drinks/food/chat. It would probably be better if venue suggestions came from people who were going to be there (rather than me). Cheers Grant From perl at ewen.mcneill.gen.nz Mon Apr 5 20:51:30 2010 From: perl at ewen.mcneill.gen.nz (Ewen McNeill) Date: Tue, 06 Apr 2010 15:51:30 +1200 Subject: [Wellington-pm] CPAN to project lib directory In-Reply-To: <640E06B0-DE82-4366-8F6F-7ED53EE1D48E@gschwendtner.eu> References: <4BBA9AF6.1050601@ewen.mcneill.gen.nz> <640E06B0-DE82-4366-8F6F-7ED53EE1D48E@gschwendtner.eu> Message-ID: <4BBAAFC2.9020104@ewen.mcneill.gen.nz> Lenz Gschwendtner wrote: > have a look at cpanminus and hack it to your likings > and then make this new one a project dependency ... That wasn't quite the answer I was looking for :-) But cpanminus does look somewhat interesting, and I wasn't aware of it before so thanks for the pointer. FTR, what I ended up doing was this ugly kludge: mkdir lib/CPAN cpan ! my $pwd=`pwd`; chomp $pwd; $CPAN::Config->{makepl_arg} = "INSTALL_BASE=$pwd/lib/CPAN"; ! my $pwd=`pwd`; chomp $pwd; $CPAN::Config->{mbuild__arg} = "--install_base $pwd/lib/CPAN"; (each "!" command on a single line, not word wrapped.) Assuming that you run it from the top level of your project directory. (One could, perhaps, wrap expect around "cpan" to do this based on a project directory set of settings, but that's at least as baroque.) Ewen From jarich at perltraining.com.au Wed Apr 7 17:44:04 2010 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Thu, 08 Apr 2010 10:44:04 +1000 Subject: [Wellington-pm] Open Source Developers' Club AGM - 19 April 2010 Message-ID: <4BBD26D4.5000409@perltraining.com.au> G'day folk, This doesn't seem to have been sent on to the Welly PM list yet. If you're free next Monday and would like to have a say in how the OSDC exec is populated for the next year, please contact the exec and find out how you can proxy your votes/turn up via irc. J -------------- next part -------------- An embedded message was scrubbed... From: Ben Balbo Subject: [OSDC:ClubAnnounce] Open Source Developers' Club AGM - 19 April 2010 Date: Thu, 11 Mar 2010 13:24:37 +1100 Size: 7200 URL: From grant at mclean.net.nz Tue Apr 27 03:08:28 2010 From: grant at mclean.net.nz (Grant McLean) Date: Tue, 27 Apr 2010 22:08:28 +1200 Subject: [Wellington-pm] Meeting in 2 Weeks Message-ID: <1272362908.7612.3.camel@localhost> Hi Mongers We didn't do too well at getting together in April, so let's make it happen for the May meeting in two weeks on the 11th. At this stage nobody has volunteered to speak so if you'd like to book a slot or you'd like to suggest a topic then let me know. Time and place as usual: http://wellington.pm.org/ See you there. Cheers Grant