in reply to How to create installable modules ?

Hi, premak.

I'd suggest you'd take a look at José's Guide for creating Perl modules, because there's clearly more information there that you'll need.

Search for "PREREQ_PM" in that document. I think you'll find what you want.

HTH.

  • Comment on Re: How to create installable modules ?

Replies are listed 'Best First'.
Re^2: How to create installable modules ?
by blm (Hermit) on Jan 11, 2006 at 12:06 UTC

    Perhaps we should be suggesting resources that detail the use of the new methods that do not rely on ExtUtils::MakeMaker? At least that is the feeling I get from reading slides from Michael Schwern's presentation "MakeMaker is Doomed". In this talk he recommends Module::Build. The quote that stuck in my mind that stuck in my mind from those slides was when Michael Schwern says:

    I'm sick of maintaining MakeMaker, let it fade away."

    Perhaps I should get stuck into updating that tutorial or writing a new one.

      Of course Schwern says ExtUtils::MakeMaker is dead. He's the one trying to kill it. It's still the workhorse that gets modules installed, though.

      I'm not going to worry about it until Module::Build is in the standard distribution and enough people have upgraded their perl distros.

      --
      brian d foy <brian@stonehenge.com>
      Subscribe to The Perl Review
      Perhaps we should be suggesting resources that detail the use of the new methods that do not rely on ExtUtils::MakeMaker? At least that is the feeling I get from reading slides from Michael Schwern's presentation "MakeMaker is Doomed". In this talk he recommends Module::Build.
      MakeMaker cannot really begin to fade away until Module::Build is part of the Perl core distribution. I've heard talk that that will happen with 5.10, but, AFAICT, it hasn't happened yet. And the fading won't get really serious until Module::Build is so well established that established module-authors (myself included) feel compelled to start including Build.PL scripts in their CPAN distros along with Makefile.PL. Then, in a later version, we can begin to imagine not including MakeMaker in the core distribution. That's a long ways off, IMH.

      Having peered into MakeMaker's innards, I can well appreciate what Schwern goes through in attempting to maintain it.

      All that being said, what I would welcome (and what you are welcome to volunteer for) is a supplement to cog's tutorial which provides a point-to-point guide for building a Build.PL file to accomplish what a Makefile.PL does at least for a pure Perl distribution.

      jimk

        My recollection is that the first module that I tried to install that needed Module::Build actually installed it as a prereq. And even then you can write a Makefile.PL that is just a wrapper around Build.PL for those that can't or won't be able to use the new build stuff. Is this inaccurate?

        Isn't this person that we are trying to help build a module distribution not an established module author anyway?