in reply to Getting modules dependecies without installing

I'm hoping others more experienced in making module distributions will come in with a more definitive answer, but...

I just installed "Data::Dump::Streamer" on my laptop earlier today, to try out something posted by another monk. Looking at the unpacked tar file from CPAN just now, I found a file called "META.yml", and in that file, I saw:

# http://module-build.sourceforge.net/META-spec.html #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX +# name: Data-Dump-Streamer version: 1.10 version_from: lib/Data/Dump/Streamer.pm installdirs: site requires: Algorithm::Diff: 1.15 Data::Dumper: 2.121 Test::More: Text::Balanced: 1.95 distribution_type: module generated_by: ExtUtils::MakeMaker version 6.17
So, I don't know if every CPAN module tar file includes a "META.yml" file, but if any of them lack this particular feature, then either the module in quesstion has no dependencies, or else there must be some other plain text file in the distro tarball that gives the dependency info.

Replies are listed 'Best First'.
Re^2: Getting modules dependecies without installing
by stvn (Monsignor) on Aug 02, 2004 at 02:12 UTC
    So, I don't know if every CPAN module tar file includes a "META.yml" file,

    So do, some don't. The same information is usually in either the Makefile.PL or the Build.PL file. But this will only list the immediate dependencies, and not anything those dependencies depend on.

    I think the best bet is to install them while you have the net connection, and save yourself the possible frustration later on.

    -stvn