I have a script that I wrote that automatically installs some modules via CPAN (i.e., doing a use CPAN and then calling CPAN::Shell->install()). This worked great ... until one of my modules switched over to using Module::Build.
Now I cannot figure out how to convince Module::Buiild to put things into the directory I want them. For other modules, my customizations to the MyConfig.pm file are sufficient. But I've tried setting all the mbuild_* vars (mbuild_arg, mbuildpl_arg, mbuild_install_arg, and mbuild_install_build_command), using both --install_base and --install_path, I've tried setting the vars suggested in the Module::Build man page (installprivlib, installsitelib, installvendorlib, installarchlib, installsitearch, and installvendorarch), and I've tried doing them some at a time and all at once. Nothing. I continuously tell it I want it to use /home/buddy/lib/perl, but it continuously insists on using /home/buddy/lib/perl5/site_perl.
Does anyone know how to accomplish this? I could obviously run the perl Build.PL / Build / Build test / Build install by hand with my script and not have to go through CPAN, but then I'd have to figure out which modules were using Module::Build and separate them out, whereas now I just feed a giant list (I'm using a Bundle file, actually) to the script and call it a day. So I'd obviously rather not have to change that. I'm sure (at least fairly sure) there's some way to tweak MyConfig.pm to make this work, but I just can't seem to figure out what it is.
TIA.
-- Buddy
(16)
]
