in reply to Dependent Package Requirement
If I understand you correctly, you want to package your module in a way that an attempt to install it won't also automatically cause either Archive::Zip or Archive::SevenZip to be installed, unless neither is already installed.
From looking at http://search.cpan.org/~dagolden/CPAN-Meta-2.150005/lib/CPAN/Meta/Spec.pm, I think the best you can do is make both optional ("recomends"), then have a test to make sure one of those is available.
You might be able to add code to Makefile.PL before the line with WriteMakefile, but I don't know how you could then get either archiver installed from there. Maybe you could do system 'cpan Archive::Zip';
Update: Looked again and found 1140942. Seems it is possible to modify MakeFile.PL to munge the prereqs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dependent Package Requirement
by jandrew (Chaplain) on May 19, 2016 at 21:00 UTC | |
by RonW (Parson) on May 19, 2016 at 21:27 UTC | |
by jandrew (Chaplain) on May 19, 2016 at 22:42 UTC |