logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: module-dependency expressions (was: Re: [Module::Build] ANNOUNCE: Modul: msg#00036

Subject: Re: module-dependency expressions (was: Re: [Module::Build] ANNOUNCE: Module::Build 0.26 -> CPAN)
On Oct 11, 2004, at 5:47 PM, David Wheeler wrote:

     requires => {
         'db_driver'    =>
             'expr'    => q[ {postgresql} || {mysql} ],
             'missing' => 'This module requires a database driver...',
         '{postgresql}' => {
             'DBD::Pg'                 => 0,
             'DateTime::Format::Pg'    => 0,
'missing' => 'Missing components for postgresql driver %X',
         },
         '{mysql}'      => {
             'DBD::mysql'              => 0,
             'DateTime::Format::mysql' => 0,
             'missing' => 'Missing components for mysql driver %X',
         }

Basically this feature is stalled until we can find a reasonable solution. Input welcome.

That certainly works for me, and seems simple enough.

Oh, wait...shouldn't there be a way to prompt the user or for him/her to pass an option so that she can select which she wants? Then CPANPLUS or CPAN.pm would know what to install...

Regards,

David



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl


<Prev in Thread] Current Thread [Next in Thread>