Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

make/deploy tool for perl scripts

by johnnywang (Priest)
on Jul 13, 2004 at 18:10 UTC ( [id://374082]=perlquestion: print w/replies, xml ) Need Help??

johnnywang has asked for the wisdom of the Perl Monks concerning the following question:

wondering whether there are some general tools for deploying/managing large perl applications, I mean something like Ant for java. One can of course use makefiles, but I'm looking for something more perl-ish and better than Ant: most tasks should be descriptive (like a build.xml),and yet allowing scripting in perl for more complicated flow-control. Any pointers? thanks.

Replies are listed 'Best First'.
Re: make/deploy tool for perl scripts
by hardburn (Abbot) on Jul 13, 2004 at 18:19 UTC

    Module::Build is getting popular. I don't like the authors' antaganisitc views on the older ExtUtils::MakeMaker, but they do have a good module.

    ----
    send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

      I personally don't like Module::Build's complete disregarding of well-established items like PREFIX and such. Especially when it recognises that it's been passed those items. It's incredibly arrogant, IMO. (update: fix a minor grammar issue)
        Um, not implementing something is not arrogant. Have you ever looked at the code in EU::MM that makes PREFIX do its thing? Would you care to re-implement that?
        I personally don't like Module::Build's complete disregarding of well-established items like PREFIX and such. Especially when it recognises that it's been passed those items. It's incredibly arrogant

        No it's not.

        The whole point of Module::Build is to re-think how module installation works. The EU:MM PREFIX logic is very complicated. The M::B install_base logic is far simpler and works in more places.

        If you want M::B to do exactly the same as EU:MM why bother?

Re: make/deploy tool for perl scripts
by ysth (Canon) on Jul 13, 2004 at 19:21 UTC
    There's also Module::Install.

    Definitely do try to use one of those three, though; not something homebrewed.

Re: make/deploy tool for perl scripts
by Zaxo (Archbishop) on Jul 13, 2004 at 18:36 UTC

    I'll still vote for ExtUtils::MakeMaker. That's the perlish way to handle make and makefiles.

    After Compline,
    Zaxo

      I wouldn't consider running regular expressions against snippets of shell scripts exactly Perlish. I know Perl. I like Perl. MakeMaker makes me want to become an accountant.

Re: make/deploy tool for perl scripts
by tomhukins (Curate) on Jul 13, 2004 at 22:30 UTC
    You might find the slides for Mark Fowler's talk on Creating CPAN Distributions helpful. His comments apply to any large Perl code base, whether on CPAN or not.
Re: make/deploy tool for perl scripts
by zakzebrowski (Curate) on Jul 14, 2004 at 12:00 UTC
    I don't see why you can't use Ant in a perl environment... I actually think it would be worth it to write some ant extentions for perl, since it does handle a lot of build type problems elegently, especially when you need to deploy something enterprise wise... /me ducks.


    ----
    Zak - the office
      Actually I did use Ant for doing some perl stuff since I need to work with java for other projects, but Ant has its own problems (e.g., most declaritive using xml, can't really program it, for example, doing some conditional or looping is pretty hard, or too verbose to be elegant). I'm looking for something that go beyond simple copy/move, for example, easy cvs, tar/zip integration, global replace, target dependencies, etc., basically something that does what Ant does but also allows scripting. (I think the Ant community was/is considering adding some scripting capabilities, say via jython.) Thanks again for all the inputs.
        When you work with a tool like Perl that can do anything it can be difficult to step down to a more focused tool like Ant.

        If you reimpliment Ant in Perl, I suggest you call it Pants :-) No one likes it when you bring Ants to the party, but you can't come to the party without Pants.

        Or something like that.
        I think the Ant community was/is considering adding some scripting capabilities

        Already done with the script and scriptdef tasks :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://374082]
Approved by kvale
Front-paged by Courage
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found