On Fri, Oct 2, 2009 at 2:31 PM, Christopher J. Madsen <p...@cjmweb.net> wrote:
> 3. Reconstruct the MB object.  Tempting, but as brian d foy found, it's
> not as simple as just calling Module::Build->resume.

It should be easy in most cases.  brian was expecting Module::Build to
remember @INC at the time Build.PL created the M::B subclass object,
but it doesn't.  "use lib 'inc'; $mb = Module::Build->resume" should
work.  And if it doesn't, we'll get it fixed so it does.

> 4. Run "./Build distmeta" then read META.yml.  I think all the
> information I need is in META.yml, although it's possible I'll discover
> otherwise when I actually implement this.  This has the nice side-effect
> of creating a passthrough Makefile.PL (if configured in Build.PL).

With a recent dev release of M::B, you can just run the Build.PL file
and a MYMETA.yml file will be created that contains all that
information.  It's the new standard for how the toolchain can
communicate distribution information between processes.  That might be
sufficient for your needs.

-- David

Reply via email to