On 11/7/2013 1:18 PM, Leon Timmermans wrote:
On Thu, Nov 7, 2013 at 9:49 PM, Linda W <perl-didd...@tlinx.org <mailto:perl-didd...@tlinx.org>> wrote:

    I am trying to specify a pre-req that needs to be present for
    my module to work.

    I have it under the PREREQ_PM section next in my Makefile.PL
    as well as under the BUILD_REQUIRES section.

    I'm not sure I specified the version correctly -- I note that
    Test::Simple, has a floating point version, while mine has
    a string '0.3.2'.


You should specify such versions as 'v0.3.2'. Without the v the vstring/version object logic doesn't kick in.
---
Which file(a) does MakeMaker use? Or does it produce meta.yml & mymeta.{json,yml}? (caps were approp.)

The mymeta ones both had any place I specified
a '1.2.3' changed to: v1.2.3, which I wondered about --
but this wasn't done in the META.yml, where the quotes were
stripped off.

This was in ExtUtils:MM 6.36

While that might be the only problem, the fact that
even the test checks for the header and shouldn't start
the tests if the prereq isn't there --- but that's not what
I see in the output...it's like the BEGIN stuff isn't even run.

I can upgrade /put-dependency for the later version of
EU::MM, but can't really test it locally -- since it did the
right thing locally, in that the test prog DID pull down
the prereq when the "make " did not, but the CPAN test
reports don't match and/or don't seem to be doing the same.

Maybe I should write a test for the pre-reqs being callable
and fail if they  aren't?  *sigh*






Reply via email to