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

Re^3: Should I list core modules as dependencies?

by Khen1950fx (Canon)
on Jun 02, 2013 at 10:30 UTC ( #1036574=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Should I list core modules as dependencies?
in thread Should I list core modules as dependencies?

If you look a little deeper at the long-tail of core modules, you'll see that most of the core modules listed are dual-lived. Those are the core modules that are costantly being updated and can be downloaded from CPAN. I usually avoid listing non-dual-lived modules because they will cause CPAN to try to install perl again, which isn't what you or the user really want. For example, if you try to install bytes---CPAN will install bytes but also all of the core all over again.

Let's look at the list you gave. I left out the non-dual-lived modules:
#!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->install(qw( Carp Exporter File:Temp) );
Adding the dependencies for Test::Deep:
#!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->install(qw( Exporter Carp File::Temp Test::NoWarnings Test::Tester ExtUtils::MakeMaker Test::More List::Util) );
Does that help? Just remember to list dual-lived dependencies. The non-dual-lived modules are already there, just waiting for you:).


Comment on Re^3: Should I list core modules as dependencies?
Select or Download Code
Replies are listed 'Best First'.
Re^4: Should I list core modules as dependencies?
by vsespb (Hermit) on Jun 02, 2013 at 11:16 UTC
    I usually avoid listing non-dual-lived modules because they will cause CPAN to try to install perl again, which isn't what you or the user really want. For example, if you try to install bytes---CPAN will install bytes but also all of the core all over again.
    So, Git::Raw and HTML::Builder (see links in original post) are trying to install new Perl ? I doubt.

    Why it should? For example 'strict' module version specified as 0, that means it's installed, and should not be updated...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-07-30 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls