avar has asked for the wisdom of the Perl Monks concerning the following question:
I maintain a large-ish tree of perl modules that I keep in git, it's arranged as such:
modules/Some-Module modules/Some-Other-Module ...
I have scripts to go to each directory and do the basic perl Makefile.PL; make all dist which builds a .tar.gz package.
My problem is that after I have all those .tar.gz packages, and since some of the packages may depend on other packages they have to be installed in a particular order.
Currently I'm doing this by keeping a manual list of the order in which they should be installed. I then do:
cpanp -i file://$(pwd)/$module_name-$module_version.tar.gz
on each of them in the correct order. I'd rather have my tools (preferrably CPANPLUS) handle dependency resolution for me.
I used to have a solution for this when I used CPAN.pm by running my own CPAN mirror with CPAN::Mini and using CPAN::Mini::Inject to inject all my packages into it before installing them. But maintaining that setup was even more painful than manually maintaining a list of which order they should be installed in.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I get CPANPLUS (or some other tool) to resolve dependencies when installing local .tar.gz packages?
by Anonymous Monk on Dec 04, 2007 at 16:20 UTC | |
|
Re: How do I get CPANPLUS (or some other tool) to resolve dependencies when installing local .tar.gz packages?
by jettero (Monsignor) on Dec 04, 2007 at 16:26 UTC | |
by Anonymous Monk on Dec 04, 2007 at 16:48 UTC | |
by eserte (Deacon) on Dec 04, 2007 at 20:13 UTC |