Best way to distribute program with modules

Discussion in 'Perl Misc' started by January Weiner, Mar 3, 2008.

  1. Hi,

    I have written quite a complex (at least for me) program of >10k lines of
    code, packed in a main file and a dozen modules. While I am writing up the
    publication (yep, it's a scientific program), I am wondering, what would be
    the best way to package it.

    Specifically, I would like to make the installation for the user as
    painless as possible. Right now I write something along the lines "move
    the Xxx directory into /usr/local/lib/site_perl or any other apropriate
    directory with Perl modules", but this is hardly satisfactory.

    I really have no experience with that, and regretfully, I will not have
    time to devote a lot of attention to proper packaging, because other issues
    around the publication are more pressing. Is there anything simple I could
    do? I know I could use the PAR module (actually, I use pp to create
    binaries), but I would much prefer to have a simple "clever" installer script.

    Best regards,

    January
    January Weiner, Mar 3, 2008
    #1
    1. Advertising

  2. January Weiner

    Ben Morrow Guest

    Quoth January Weiner <>:
    > Hi,
    >
    > I have written quite a complex (at least for me) program of >10k lines of
    > code, packed in a main file and a dozen modules. While I am writing up the
    > publication (yep, it's a scientific program), I am wondering, what would be
    > the best way to package it.
    >
    > Specifically, I would like to make the installation for the user as
    > painless as possible. Right now I write something along the lines "move
    > the Xxx directory into /usr/local/lib/site_perl or any other apropriate
    > directory with Perl modules", but this is hardly satisfactory.


    Is there something wrong with creating a CPAN-style distribution?
    'tar -xzvf $TAR; perl Makefile.PL; make test; make install' is fairly
    simple, or even simpler 'cpan -i pip; pip $TAR'.

    Ben
    Ben Morrow, Mar 3, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin
    Replies:
    12
    Views:
    741
  2. rocksportrocker

    Distribute ctypes based modules

    rocksportrocker, Jul 2, 2008, in forum: Python
    Replies:
    0
    Views:
    256
    rocksportrocker
    Jul 2, 2008
  3. Zed A. Shaw
    Replies:
    5
    Views:
    90
    Dido Sevilla
    Mar 26, 2005
  4. Pavel Pvl

    best way to distribute?

    Pavel Pvl, Dec 19, 2007, in forum: Ruby
    Replies:
    22
    Views:
    271
    Pavel Pvl
    Dec 23, 2007
  5. Omar Campos

    Best way to distribute an app

    Omar Campos, Nov 29, 2009, in forum: Ruby
    Replies:
    13
    Views:
    189
    David Masover
    Dec 5, 2009
Loading...

Share This Page