cpm icon indicating copy to clipboard operation
cpm copied to clipboard

Allow additions to PERL_MB_OPT

Open djerius opened this issue 5 years ago • 3 comments

Some distributions have custom Module::Build options that need to be applied, but cpm overrides the PERL_MB_OPT variable.

For example, Params::Validate v1.29 doesn't recognize --pureperl_only, but does recognize --pp.

I'd like to be able to do something equivalent to this:

PERL_MB_OPT=--pp cpan Params::Validate

Thanks, Diab

djerius avatar Aug 20 '20 14:08 djerius

For --pureperl-only, it is defined in The Lancaster Consensus.

skaji avatar Aug 20 '20 15:08 skaji

Agreed, it's just that there are older modules which don't support it yet, so the ability to add options to Build.PL would be useful.

djerius avatar Aug 20 '20 15:08 djerius

Actually, I thought cpm respected PERL_MM_OPT. But, it turns out that local::lib overwrite the environment variable.

skaji avatar Aug 22 '20 03:08 skaji