|Subject:||Module::Build install path can be taken when Module::Build is not installed|
I apologise if I don't have conclusive proof for this, but reading through the CPAN.pm code the following would appear to be true. IF a distribution has only Build.PL AND Module::Build is not installed on host THEN CPAN.pm will select the Build.PL install method RESULTING IN the installer crashing due to lack of Module::Build. This is despite CPAN being able to _know_ that M:B isn't installed and that in all certainty perl Build.PL is going to crash. This results in confusing and misleading errors to the user when CPAN could just make sure that M:B is installed before calling Build.PL. On the plus side it does appear that if a module has BOTH installers and M:B is not installed CPAN.pm picks Makefile.PL regardless. Solutions: ---------- 1. Add Module::Build as a compulsory dependency for CPAN itself. (Does M:B work everywhere? It's certainly heading for core) 2. Automatically install Module::Build if it encounters a Build.PL-only distribution. (prefered maybe?) Hard to know what to do, but I'm expecting to start seeing errors soon.