Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Entire project on CPAN -- including all modules

by VinsWorldcom (Parson)
on Mar 08, 2012 at 21:13 UTC ( #958536=note: print w/replies, xml ) Need Help??

in reply to Entire project on CPAN -- including all modules

If they're not bundled in the same distribution (.tar.gz) file then you could put prerequisites in the Makefile.PL of each separate module. Since you said you use ExtUtils::MakeMaker, I've done that with:

# # $Id: Makefile.PL 49 2009-05-31 13:15:34Z $ # use ExtUtils::MakeMaker; require v5.6.1; WriteMakefile( NAME => 'Module::Name', VERSION_FROM => 'lib/Module/', LICENSE => 'artistic', ABSTRACT_FROM => 'lib/Module/', AUTHOR => 'VinsWorldcom', PREREQ_PM => { Business::ISP::m1 => 1.00 # must be greater than ver 1 Business::ISP::m2 => 0 # version doesn't matter }, );

Replies are listed 'Best First'.
Re^2: Entire project on CPAN -- including all modules
by stevieb (Monsignor) on Mar 08, 2012 at 21:21 UTC

    What I was hoping for, was the ability to have a 'root' or a top-level of my distribution so that everything within its relative namespace gets installed.

    The PREREQ_PM only *warns* that dependencies aren't installed.

    What I'd like (at minimum) is for all of my modules under this distro to be installed by default, and then the rest of the prereq's installed automatically, or by choice by the user.

    I hope I am explaining myself clearly ;)


      If you are in your distribution directory, the command

      cpan .

      (note that dot) will install all prerequisites and then that module from CPAN.

      The alternative is to just include all modules in your distribution directly.

      There is no mechanism to tell CPAN to "just pull in all things within that same namespace", except to list all these modules yourself.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958536]
[Corion]: Hmmm - and now that I look at it, the gallery I'm using doesn't produce non-Javascript compatible links in the sense that hotlinking to an image will only work for Javascript enabled...
[Corion]: On the other hand, maybe supporting non-Javascript isn't that much a priority, and I'm not exactly sure how I could make it work for both kinds of browsers without server-side magic
[Corion]: Should I ever come across far too much money, this would become my evil maniac lair ;)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-02-27 08:34 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (377 votes). Check out past polls.