How do I express a dependency on a Perl version?
Hi all, I have a module that I don’t want to spend the effort to make it work in Perl versions earlier than 5.8. Got no Unicode support? You lose. But how do I say this in the Build.PL? Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/
Re: How do I express a dependency on a Perl version?
--- David Golden [EMAIL PROTECTED] wrote: In Build.PL, add perl to the requires list. In Makefile.PL, add require 5.008 to the top of the Makefile.PL Out of curiosity, why is require 5.008 not a suitable option for Build.PL? Does it track this as metadata and report on it? Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http://use.perl.org/~Ovid/journal/
Re: How do I express a dependency on a Perl version?
On 13 Aug 2007, at 14:36, A. Pagaltzis wrote: Hi all, I have a module that I don’t want to spend the effort to make it work in Perl versions earlier than 5.8. Got no Unicode support? You lose. But how do I say this in the Build. I believe you just add: 'perl' = '5.8.0', to the requires hashref. Cheers, Adrian
Re: How do I express a dependency on a Perl version?
On 8/13/07, A. Pagaltzis [EMAIL PROTECTED] wrote: But how do I say this in the Build.PL? In Build.PL, add perl to the requires list. In Makefile.PL, add require 5.008 to the top of the Makefile.PL David
Re: How do I express a dependency on a Perl version?
On 8/13/07, Ovid [EMAIL PROTECTED] wrote: --- David Golden [EMAIL PROTECTED] wrote: In Build.PL, add perl to the requires list. In Makefile.PL, add require 5.008 to the top of the Makefile.PL Out of curiosity, why is require 5.008 not a suitable option for Build.PL? Does it track this as metadata and report on it? It can be used with Build.PL, but it's not necessary. Module::Build knows how to find the version of perl when specified as a requirement and proceeds as usual from there (including adding it to generated META.yml). At this point, I think the latest releases of M::B, CPAN, CPANPLUS, and CPAN::Reporter all know to handle perl specially in the prerequisite list. In addition, CPANPLUS and CPAN::Reporter will detect require 5.xxx failures in *.PL and classify those reports as NA. Schwern and I discussed this difference in behavior on the EU::MM RT queue: https://rt.cpan.org/Ticket/Display.html?id=28374 It seems likely there will be a different way of specifying a minimum perl version in EU::MM eventually that will preserve that requirement as metadata. Regards, David
Re: How do I express a dependency on a Perl version?
On 8/13/07, A. Pagaltzis [EMAIL PROTECTED] wrote: Does Module::Build::Compat? Ie. if I have it emit `traditional` style Makefile.PL, will that include the appropriate `require` stanza? 0.2808 will not, but a patch was commited to do so for the next release. David
Re: How do I express a dependency on a Perl version?
* David Golden [EMAIL PROTECTED] [2007-08-13 16:20]: At this point, I think the latest releases of M::B, CPAN, CPANPLUS, and CPAN::Reporter all know to handle perl specially in the prerequisite list. Does Module::Build::Compat? Ie. if I have it emit `traditional` style Makefile.PL, will that include the appropriate `require` stanza? Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/