![]() ![]() The following are the most common commands generally used in installers. This module was originally written by Brian Ingerson as a smart drop-in replacement for ExtUtils::MakeMaker.įor more information, see Brian's Creating Module Distributions with Module::Install in June 2003 issue of The Perl Journal ( )įor a lot more information, and some personal opinions on the module and its creation, see Module::Install::Philosophy. This allows new improvements to be used in your installers regardless of the age of the system a distribution is being installed on, at the cost of a small increase in the size of your distribution. Rather than try to target one specific installer and/or make you add twisty workaround expressions to every piece of install code you write, Module::Install will copy part of itself into each module distribution it creates. These have accumulated greatly varying feature and bug profiles over the years, and it is now very difficult to write an installer that will work properly using only the installed versions of these modules,įor example, the CPAN.pm version shipped with Perl 5.005 is now 5+ years old and considered highly buggy, yet it still exists on quite a number of legacy machines. The motivation behind Module::Install is that distributions need to interact with a large number of different versions of perl and module installers infrastructure, primarily CPAN.pm, CPANPLUS.pm, ExtUtils::MakeMaker and Module::Build. You don't really need the rest of this description unless you are interested in the details. If all you want to do is write an installer, go and do that now. Then modify the file to suit your own particular case, using the list of commands documented in "COMMON COMMANDS" below. The quickest way to get started with Module::Install is to copy the "SYNOPSIS" from above and save it as your own Makefile.PL. The intent is to make it as easy as possible for CPAN authors (and especially for first-time CPAN authors) to have installers that follow all the best practices for distribution installation, but involve as much DWIM (Do What I Mean) as possible when writing them. Module::Install is a package for writing installers for CPAN (or CPAN-like) distributions that are clean, simple, minimalist, act in a strictly correct manner with ExtUtils::MakeMaker, and will run on any Perl installation version 5.005 or newer. Use of Module::Install for new distributions is therefore discouraged by the maintainers. Dist::Zilla additionally has a more robust plugin system which makes it easier to keep up with changes to the CPAN::Meta::Spec and add other new functionality. These tools allow the author to build and maintain distributions with DWIM convenience, while the distribution is installed directly by ExtUtils::MakeMaker or similar installation tools, avoiding the complexity of bundling the installer. Please note that while Module::Install pioneered many great ideas in its time, its primary benefits have been better achieved by the authoring tool Dist::Zilla, and its spinoffs Dist::Milla and Minilla. Quickly upgrade a legacy ExtUtil::MakeMaker installer: use inc::Module::Install In your Makefile.PL: (Recommended Usage) use inc::Module::Install Module::Install - Standalone, extensible Perl module installer SYNOPSIS Module::Install isn't at 1.00 yet, is it safe to use yet?.What are the benefits of using Module::Install?. ![]()
0 Comments
Leave a Reply. |