Subject: | CPANPLUS - Getting PREFIX=.. effective via API |
Hi !
Thanks for the wonderful CPANPLUS Api. I'm creating big-scale automation
for maintaining large set of modules for a corporate environment.
I've got 2 questions, first critical and second nice-to-have:
- Shell: setenv PERL_MM_OPT "/home/...." and Perl: BEGIN
{$ENV{'PERL_MM_OPT'} = "PREFIX=/home/....";} do solve the setting of
PREFIX for experimental installs under /home/, but is there any cleaner
"Api way" to set the alternative module install location.
CPANPLUS::Configure seems to come close to this, but I just couldn't
find a way reading the docs or by looking at source.
- Is there any DBI based way (Generic DBI or DBD::Sqlite for example)
for the bookkeeping of module metadata in the dev. pipeline ? Maybe some
loosely coupled system outside CPANPLUS modules would be best at least
for the starters. If the project produces such system as a side effect,
are you interested in seeing the module ?
Looking forward to hearing about the nicer way of setting the custom
module install path !
With best regards,
Olli Hollmen