Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cwest (1514)

cwest
  (email not shown publicly)
http://caseywest.com/
AOL IM: caseyrwest (Add Buddy, Send Message)

Perl geek.

Journal of cwest (1514)

Thursday January 22, 2004
03:40 PM

How to build complex dists?

[ #16957 ]

I have a project. I'm going to use a basic web project as an example. This project is called Website. I could create one huge distribution called Website and put all my modules inside the lib/ directory such that I've got something like this:

Website/Changes
Website/lib/
Website/lib/Website/
Website/lib/Website/Article .pm
Website/lib/Website/Article/
Website/lib/Website/Article/...
Website/lib/ Website/Template.pm
Website/lib/Website/Template/
Website/lib/Website/Template /...
Website/lib/Website/User.pm
Website/lib/Website/User/
Website/lib/Websit e/User/...
Website/Makefile.PL
Website/README

In this example I've made one distribution and put everything under it. I don't want to do that, though, because it requires that I build all the subcomponents when I might have only made a change to the Website::User code. What I want are sub-distributions. Is this reasonable?

I suspect it might look something like this.

Website/Changes
Website/lib/
Website/lib/Website-Article/
Website/lib/Website -Article/lib/
Website/lib/Website-Article/lib/...
Website/lib/Website-Article/ Makefile.PL
Website/lib/Website-Template/
Website/lib/Website-Template/lib/
W ebsite/lib/Website-Template/lib/...
Website/lib/Website-Template/Makefile.PL
W ebsite/lib/Website-User/
Website/lib/Website-User/lib/
Website/lib/Website-Use r/lib/...
Website/lib/Website-User/Makefile.PL
Website/Makefile.PL
Website/RE ADME

With something like this, I could rebuild part of the project libraries, the Website-User code, for example. At the same time I could rebuild the whole project if I felt like it. What do you think?

Other options might be to go with a structure like what h2xs used to give you. Every module has a Makefile.PL. Is that too far in the other direction?

Opinions solicited, thanks!

Posted from caseywest.com, comment here.

New comment creation has been disabled on this discussion.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.