Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Khen1950fx (Canon)
on Jun 02, 2013 at 10:30 UTC ( [id://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:).

Replies are listed 'Best First'.
Re^4: Should I list core modules as dependencies?
by vsespb (Chaplain) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1036574]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found