Subject: | please add support for PUREPERL_ONLY |
I've prepared a patch which adds support for PUREPERL_ONLY.
You may find it here:
https://github.com/djerius/strictures
The code is 99% stolen from Devel::GlobalDestruction
Rationale:
I'm using cpanm --pp to populate a directory for App::FatPacker. strictures is required by the application.
Prior to 1.005002 when compile-only modules were recommendations, cpanm happily ignored them, and I was able to install strictures in pure-perl mode.
After 1.005002, when those modules became requirements if the host platform had a C compiler (which my dev box does), cpanm attempted to install them using PUREPERL_ONLY=1, and Lexical::SealRequireHints properly notified me that it must be compiled and the installation of strictures failed.
This patch allows strictures to be installed under cpanm --pp, whether or not a C compiler is present.
Thanks,
Diab