in reply to Installing distros from prebuilt files (blib/)?

Basically, I think you're outlining the process that is identical to modules that are just copied from lib/ to blib/. This is what the two flags in META.* seem to be for:

"dynamic_config" : 0, "x_static_install" : 1

I think I found these flags via CPAN::Meta::Spec and http://blogs.perl.org/users/shoichi_kaji1/2017/03/make-your-cpan-module-static-installable.html.

I think these flags are maybe even already supported in cpanm and cpan.

Replies are listed 'Best First'.
Re^2: Installing distros from prebuilt files (blib/)?
by perlancar (Hermit) on Jul 05, 2017 at 13:58 UTC
    I see, so for static install cpan client can skip perl Makefile.PL && make and just copies lib/ (and script/) to the final destination. That leaves manpages. I measured manifying 10 .pod files at around 0.6s on my computer. So probably not that much saving.
Re^2: Installing distros from prebuilt files (blib/)?
by perlancar (Hermit) on Jul 05, 2017 at 14:06 UTC
    BTW, I couldn't find the links above explain the differences between putting scripts in script/ vs bin/.