Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Best way to distribute program with modules

Reply
Thread Tools

Best way to distribute program with modules

 
 
January Weiner
Guest
Posts: n/a
 
      03-03-2008
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


 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      03-03-2008

Quoth January Weiner <(E-Mail Removed)>:
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to distribute an app Omar Campos Ruby 13 12-05-2009 11:55 PM
Distribute ctypes based modules rocksportrocker Python 0 07-02-2008 01:30 PM
best way to distribute? Pavel Pvl Ruby 22 12-23-2007 04:07 AM
Best Way to Distribute Non-Code Files Zed A. Shaw Ruby 5 03-26-2005 02:37 PM



Advertisments