'Called before perl modules\' install() methods.
In most cases, extensions will only need to have one line:
perl(\'Makefile.PL\',\'INSTALL_BASE=%s\' % self.prefix)'

def setup_dependent_package(self, module, dependent_spec):

    module.perl = self.spec['perl'].command
    module.perl_lib_dir = dependent_spec.prefix.lib.perl5
    if dependent_spec.package.is_extension:
        mkdirp(module.perl_lib_dir)
