Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Module::Build reccomends build_requires

by Anonymous Monk
on Jan 05, 2009 at 01:11 UTC ( #734091=note: print w/replies, xml ) Need Help??


in reply to Module::Build reccomends build_requires

Look again
build_requires
Items that are necessary for building and testing this distribution, but aren't necessary after installation. This can help users who only want to install these items temporarily. It also helps reduce the size of the CPAN dependency graph if everything isn't smooshed into requires.
  • Comment on Re: Module::Build reccomends build_requires

Replies are listed 'Best First'.
Re^2: Module::Build reccomends build_requires
by mandog (Curate) on Jan 05, 2009 at 03:09 UTC

    Anony Monk:

    It certainly didn't hurt to re-re-read that bit from the man page However "Necessary" is a bit relative. For example Test::Perl::Critic explicitly says it shouldn't be included in distributed tests.

    Perhaps, I'm really trying to ask what the standard way to track/document testing dependencies that are not needed/desired for installation but are very nice for development.

      Yeah, it could use a 'build_recommends' and a 'configure_recommends' section. But it sounds like even that isn't what you want, really.

      Personally, I'd say if you really don't expect people to run those tests except when in development, I'd just not put them in the Build.PL or Meta.yml: They aren't part of the user's installation. They are part of your development suite. A programmer can find them in the test code, if they need to see them. (And they'll know to look because you are skipping the tests with a good message. Right?)

      Some people even have an environment variable they check for this case, and don't even try to run the tests if it isn't there. I've never quite gotten that complicated myself...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://734091]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2021-03-07 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (120 votes). Check out past polls.

    Notices?