On Thu, Sep 19, 2013 at 8:20 AM, David Oswald <daosw...@gmail.com> wrote:

> On Wed, Sep 18, 2013 at 3:49 PM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <da...@cpan.org> wrote:
> >> how to cause an install of
> >> List::BinarySearch to attempt to download and install
> >> List::BinarySearch::XS (a separate distribution)
> > Include the prerequisite conditionally at configure time. The condition
> > is whether xsubpp/cccmd can compile a dummy XS file.
>
> That's too late, isn't it?  If the user types, "cpan install
> List::BinarySearch", Makefile.PL doesn't get executed until after the
> target module is pulled in.  Prereqs are specified in the
> distribution's META.* files.  By the time Makefile.PL is run, the
> installer is done pulling in prereqs.  The goal is for a cpan
> installer to pull in the XS distribution and attempt to install it.
> Failure not block the PP module from completing its install.
>

The META.* is only used for configure_requires (and dynamic_config to some
extent). After Makefile.PL/Build.PL the cpan client will read the
dependencies from the mymeta file, or lacking that from the Makefile
itself/build parameters file.

Leon

Reply via email to