Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Do Pure Perl CPAN packages really need to use ExtUtils::Command::MM?

by Anonymous Monk
on Feb 18, 2011 at 02:02 UTC ( #888830=note: print w/replies, xml ) Need Help??


in reply to Do Pure Perl CPAN packages really need to use ExtUtils::Command::MM?

http://cpansearch.perl.org/src/BOBTFISH/Catalyst-Runtime-5.80031/t/live_catalyst_test.t
use FindBin; use lib "$FindBin::Bin/lib";
http://cpansearch.perl.org/src/BOBTFISH/Catalyst-Runtime-5.80031/t/lib/

Your "question" is really long and information dense, I hope I got the answer right :)

  • Comment on Re: Do Pure Perl CPAN packages really need to use ExtUtils::Command::MM?
  • Download Code

Replies are listed 'Best First'.
Re^2: Do Pure Perl CPAN packages really need to use ExtUtils::Command::MM?
by ELISHEVA (Prior) on Feb 18, 2011 at 02:27 UTC

    Thanks. However, that is essentially option A: bite the bullet. It would have to go in every single test file and every single set up script. If I am going to use ExtUtils::Command::MM to back my makefile, I either need

    • A compelling argument for why a makefile backed by Module::Build is not good enough. There is no need for Find::Bin+use lib when Module::Build backs the makefile. If it really is not good enough, I would be willing to bite the bullet.
    • A solution that does not require me to hardcode Find::Bin + use lib in file after file. Eliya has proposed one solution but there are still some outstanding portability questions.
      If I am going to use ExtUtils::Command::MM to back my makefile, I either need: A compelling argument for why a makefile backed by Module::Build is not good enough.

      Hmm, so you're writing your own Makefile (no .PL)? That is the worst of all solutions :) --Module::Build::Compat (see Module::Build users -- please use the "traditional" create_makefile_pl option) ++Module::Install

      A solution that does not require me to hardcode Find::Bin + use lib in file after file. Eliya has proposed one solution but there are still some outstanding portability questions

      Why is that a painful/unpleasant/unavoidable solution? You only have to do it once. You don't even have to do it manually :) You can make it part of your template or automate it

      There is even use inc 'Plagger'; which you can use outside of Module::Install

        No I am decidedly NOT writing my own makefile. I want to use the 'small' option of Module::Build::Compat - that generates a makefile that is backed by Module::Build. There is no need to go splattering FindBin/use lib all over if you use Module::Build. That was option B. Give me a little credit here :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888830]
help
Chatterbox?
[LanX]: prepared both kinds a 100 times and thinks the amount of grind code is about the same
Discipulus less effective i mean
[LanX]: (french press vs espresso cooker )
[LanX]: s/code/coffee/
Discipulus progammer is an organism that transforms caffeine into software..
[LanX]: hmm interesting link

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-01-16 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (149 votes). Check out past polls.