Module::Depends(3pm)

Module::Depends3pm

Identify the dependencies of a distribution

Usage

 use Module::Depends;
 my $deps = Module::Depends->new->dist_dir( '.' )->find_modules;
 print "Our dependencies:\n", Dump $deps->requires;

Overview

Module::Depends extracts module dependencies from an unpacked distribution tree.

Module::Depends only evaluates the META.yml shipped with a distribution. This won't be effective until all distributions ship META.yml files, so we suggest you take your life in your hands and look at Module::Depends::Intrusive.

Methods

new

simple constructor

dist_dir

Path where the distribution has been extracted to.

find_modules

scan the "dist_dir" to populate "libs", "requires", "configure_requires", "test_requires", and "build_requires"

libs

an array reference of lib lines

requires

A reference to a hash enumerating the prerequisite modules for this distribution.

configure_requires

A reference to a hash enumerating the prerequisite modules to configure this distribution.

build_requires

A reference to a hash enumerating the modules needed to build the distribution.

error

A reason, if any, for failing to get dependencies.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7–8
  6. 9–11
  7. 12–13

Author

Richard Clamp, based on code extracted from the Fotango build system originally by James Duncan and Arthur Bergman.

From libmodule-depends-perl 0.16-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.