UPDATE:

OK, I went `touch META.yml` into being and then `make dist` ran without errors and produced the intended results. This brings up an entirely new set of questions related to reframing my existing work inside of the PBP guidelines which make this sort of packaging possible. But I guess that deserves its own thread, and perhaps some time contemplating those questions in the midst of simply trying to do it for a while.

And to answer Joost's question:
"Are you using ExtUtils::MakeMaker or using Module::Build?"

$ module-starter --module=Module::BuildDistro $ cd Module-BuildDistro/ $ perl Makefile.PL $ make dist # <---- this throws erros $ touch META.yml $ make dist # <---- succeeds!
Thanks for the lead!
Now to start writing MANIFEST.SKIP files for everything.

And now for the original message, already in progress.

---------

Perhaps so. I had suspected that someone had needed one of these before I wrote this this morning. So I used Module::Starter::PBP to create a framework from which I could build a module for Module::BuildDistro. Just as an experiment.

Here is the error I got when I tried that make dist trick you suggested.

hesco@testbed:~/sb/Module-BuildDistro$ make dist rm -rf Module-BuildDistro-v0.0.3 /usr/bin/perl "-MExtUtils::Manifest=manicopy,maniread" \ -e "manicopy(maniread(),'Module-BuildDistro-v0.0.3', 'best');" mkdir Module-BuildDistro-v0.0.3 -e: META.yml not found at -e line 1 Can't read META.yml: No such file or directory make: *** [create_distdir] Error 2
So now I'm wondering how it is I generate one of these META.yml files this seems dependent on. Any ideas? Reading the MANIFEST says that Module::Starter expected that file to be created by make dist.

Reading the perldoc for ExtUtils::Manifest allows me to answer your question: "No, my implementation skips any file not explicitly included in the MANIFEST. While ExtUtils::Manifest excludes only those files explicity listed in the MANIFEST.SKIP file." But other than that, yes, I think this might work for me, just as well, as soon as I work out this META.yml issue.

Thanks for the lead.

-- Hugh

if( $lal && $lol ) { $life++; }

In reply to Re^2: Building a package for distribution: How do the pros do it? by hesco
in thread Building a package for distribution: How do the pros do it? by hesco

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.