http://www.perlmonks.org?node_id=951531


in reply to Module Makefile.PL conditional PREREQ_PM

No CPAN client uses what is listed in META.yml to resolve prereqs, they all run Makefile.PL to determine those.

CPAN clients will use the configure_requires field in META.yml to determine any prereqs that require resolving before Makefile.PL is executed.

Any other prereqs listed in META.yml may or may not be accurate, this is the price for a Turing complete build system

Both v1.4 of the META specification and CPAN::Meta::Spec deal with this using the 'dynamic_config' field.

Replies are listed 'Best First'.
Re^2: Module Makefile.PL conditional PREREQ_PM
by DrHyde (Prior) on Feb 03, 2012 at 11:14 UTC
    > No CPAN client uses what is listed in META.yml to resolve prereqs

    Depends on what you mean by client. Tools such as CPAN::FindDependencies and CPANdeps use META.yml for obvious reasons.