in reply to Re: Re: Setting values in Module::Build
in thread Setting values in Module::Build

That doesn't explain why you have to use an interactive prompt. Interactive installs are bad. The information you're asking for is commonly called "prefix" and should be passed on the commandline. In fact I'd be very surprised if Module::Build doesn't already know how to handle that as it's a crucial capability for a build system to have. With ExtUtils::MakeMaker it's perl Makefile.PL PREFIX=/opt/foo; there has to be an equivalent for Module::Build.

Makeshifts last the longest.

  • Comment on Re^3: Setting values in Module::Build (yuck)

Replies are listed 'Best First'.
Re: Re^3: Setting values in Module::Build (yuck)
by EvdB (Deacon) on Mar 20, 2004 at 11:29 UTC
    The install needs to be interactive for reasons other than the installation location. At perl Build.PL time lots of questions get asked, related to things such as which database should be used during testing, which user to connect as, etc. These things cannot be guessed reliably and so the user must be prompted for them.

    As the user is being prompted for these details it is only sensible to ask for the installation path as well through a prompt, rather than getting the user to use another method to set that one value.

    If the installation path was the only thing that needed to be determined and it could default to the system standard then I would agree with you, however in _this_ situation I feel that prompting in a consistent manner is the best approach.