David Golden wrote: > 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.
It doesn't look like resume does all the checks that Build does to ensure that the _build directory is up-to-date. >> 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. I don't see any advantage to using MYMETA.yml for this. I'm building the CPAN release, so I don't want any system-specific information. And just running Build.PL wouldn't generate the other files that distmeta creates. I think I'm going to try option 4 first, and see how that works out. -- Chris Madsen p...@cjmweb.net -------------------- http://www.cjmweb.net --------------------