I'm installing a bunch of modules listed in a cpanfile
into a self-contained directory:
cpanm -L bundle --quiet --notest --self-contained --with-recommends --installdeps .
Afterward, all the modules are in bundle/lib/perl5
. Which is almost exactly what I want. Is there an incantation to feed cpanm
— or an environment variable to set — to get cpanm
to tell the installer to put the files in bundle/lib
, instead? I assume I'd need to do something to convince ExtUtils::MakeMaker and Module::Build to append a different value to the install_base
, but I haven't been able to figure out how.