-
-
03 May 2012 15:56:13 UTC
- Distribution: Module-Depends
- Module version: 0.16
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (11)
- Testers (1683 / 106 / 0)
- Kwalitee
Bus factor: 0- 83.71% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (7.34KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Accessor::Chained
- File::Spec
- Parse::CPAN::Meta
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Module::Depends - identify the dependencies of a distribution
SYNOPSIS
use YAML; use Module::Depends; my $deps = Module::Depends->new->dist_dir( '.' )->find_modules; print "Our dependencies:\n", Dump $deps->requires;
DESCRIPTION
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 populatelibs
,requires
, andbuild_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.
AUTHOR
Richard Clamp, based on code extracted from the Fotango build system originally by James Duncan and Arthur Bergman.
COPYRIGHT
Copyright 2010, Richard Clamp. Copyright 2004-2008, Fotango.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Module Install Instructions
To install Module::Depends, copy and paste the appropriate command in to your terminal.
cpanm Module::Depends
perl -MCPAN -e shell install Module::Depends
For more information on module installation, please visit the detailed CPAN module installation guide.