'Runs Makefile.PL or Build.PL with arguments consisting of
an appropriate installation base directory followed by the
list returned by :py:meth:`~.PerlPackage.configure_args`.
:raise RuntimeError: if neither Makefile.PL or Build.PL exist'

def configure(self, spec, prefix):

    if os.path.isfile('Makefile.PL'):
        self.build_method = 'Makefile.PL'
        self.build_executable = inspect.getmodule(self).make
    elif os.path.isfile('Build.PL'):
        self.build_method = 'Build.PL'
        self.build_executable = Executable(join_path(self.stage.source_path, 'Build'))
    else:
        raise RuntimeError('Unknown    build_method    for    perl    package')
    if (self.build_method == 'Makefile.PL'):
        options = ['Makefile.PL', 'INSTALL_BASE={0}'.format(prefix)]
    elif (self.build_method == 'Build.PL'):
        options = ['Build.PL', '--install_base', prefix]
    options += self.configure_args()
    inspect.getmodule(self).perl(*options)
