Module::Install::CustomInstallationPath - A Module::Install extension that allows the user to interactively specify custom installation directories


Module-Install-CustomInstallationPath documentation  | view source Contained in the Module-Install-CustomInstallationPath distribution.

Index


NAME

Top

Module::Install::CustomInstallationPath - A Module::Install extension that allows the user to interactively specify custom installation directories

SYNOPSIS

Top

  In Makefile.PL:
    use inc::Module::Install;
    ...
    check_custom_installation();




DESCRIPTION

Top

This is a Module::Install extension that helps users who do not have root access to install modules. It first prompts the user for a normal installation into the default Perl paths, or a custom installation. If the user selects a custom installation, it prompts the user for the value for PREFIX. This value is then used to add PREFIX=value to @ARGV.

If the user specifies PREFIX or INSTALLDIRS as arguments to Makefile.PL, then the prompts are skipped and a normal installation is done.

COMPATIBILITY NOTE

Top

Consider carefully whether you want to use this module. In my experience, many people don't want an interactive installation. For example, CPAN users have likely already thought about custom installation paths. Debian package maintainers also want non-interactive installs.

METHODS

Top

check_custom_installation()

Imported into Makefile.PL by Module::Install when invoked. This causes the prompts to be displayed and @ARGV to be updated (if necessary).

LICENSE

Top

This code is distributed under the GNU General Public License (GPL). See the file LICENSE in the distribution, http://www.opensource.org/gpl-license.html, and http://www.opensource.org/.

AUTHOR

Top

David Coppit <david@coppit.org>

SEE ALSO

Top

Module::Install


Module-Install-CustomInstallationPath documentation  | view source Contained in the Module-Install-CustomInstallationPath distribution.