poulhs has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I am responsible for a perl-installation, including modules and best-practices.
This perl is specific for our operational scripts (3000+ servers, several OS's).
We do automatic testing (with hudson continuous integration) and packing (.rpm, .pkg, .dep and .msi).
I intend to select a bunch of perl-modules, create a Bundle:: (or rather, I assume it will be a Task:: ) and create a single package (or rather: one for each architecture/os). This task/bundle should be automatically rebuild with the latest and greatest (but not installed unless all unit-test and other tests succeed).
I have done something like this several years ago, using CPAN and a Bundle::, although it was done manually.
Things have evolved since, so I am looking into cpanp and Module::Install, something like:
cpanp i Task Module::Install Module::AutoInstall
followed by perl Makefile.PL && make && make test && make DESTDIR=/wrk/OS/ARCH/... install; with something like:
(all with proper settings of PATH, PERL5LIB, DESTDIR and friends).use inc::Module::Install; include 'Module::AutoInstall'; requires 'DateTime' => 0; requires 'Task::Moose' => 0; requires 'Log::Log4perl' => 0; # ... auto_install(); WriteAll;
One major question: Is Module::Install a fair solution, or do you recommend other modules or ways of doing this?
I'm looking for hints/ideas and experiences, as I can find no "best-practices" nor any "HOWTO" on this topic.
Any constructive feed-back (and some of the destructive too) will be very appreciated!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Automatic packaging of multiple perl-modules in a major bundle
by afoken (Chancellor) on Nov 12, 2010 at 13:24 UTC | |
by poulhs (Beadle) on Nov 12, 2010 at 15:13 UTC | |
|
Re: Automatic packaging of multiple perl-modules in a major bundle
by aquarium (Curate) on Nov 12, 2010 at 02:22 UTC | |
by poulhs (Beadle) on Nov 12, 2010 at 07:28 UTC | |
by aquarium (Curate) on Nov 14, 2010 at 22:06 UTC | |
|
SUMMARY: Automatic packaging of multiple perl-modules in a major bundle
by poulhs (Beadle) on Dec 01, 2010 at 22:56 UTC |