Module:...::Bundle(3)
okay bestie, welcome to the Module:...::Bundle(3) page from the User Contributed Perl Documentation β this one is all about bundling CPAN distributions inside your own distribution, and it's genuinely useful. π
β¨
πΈ NAME πΈ
Module::Install::Bundle β bundles distributions along with your distribution. periodt. π
β¨ SYNOPSIS β¨
Have your Makefile.PL read as follows:
use inc::Module::Install;
name 'Foo-Bar';
all_from 'lib/Foo/Bar.pm';
requires 'Baz' => '1.60';
# one of either:
bundle 'Baz' => '1.60';
# OR:
auto_bundle;
WriteAll;
π DESCRIPTION π
Module::Install::Bundle lets you bundle a CPAN distribution within your distribution. When your end-users install your distribution, the bundled distribution will be installed along with yours, unless a newer version of the bundled distribution already exists on their local filesystem. iconic behavior honestly π
While bundling will increase the size of your distribution, it has several benefits:
- Allows installation of bundled distributions when CPAN is unavailable
- Allows installation of bundled distributions when networking is unavailable
- Allows everything your distribution needs to be packaged in one place
Bundling differs from auto-installation in that when it comes time to install, a bundled distribution will be installed based on the distribution bundled with your distribution, whereas with auto-installation the distribution to be installed will be acquired from CPAN and then installed. the way that's a whole different vibe check π¦
π«Ά METHODS π«Ά
auto_bundle()β takes no arguments, and will bundle every distribution specified by arequires(). When you, as a module author, do aperl Makefile.PLthe latest versions of the distributions to be bundled will be acquired from CPAN and placed ininc/BUNDLES/. β¨bundle($name, $version)β takes a list of key/value pairs specifying a distribution name and version number. When you, as a module author, do aperl Makefile.PLthe distributions that you specified withbundle()will be acquired from CPAN and placed ininc/BUNDLES/. πbundle_deps($name, $version)β same asbundle, except that all dependencies of the bundled modules are also detected and bundled. To use this function, you need to declare the minimum supported perl version first, like this:
perl_version( '5.005' );
auto_bundle_depsβ same asauto_bundle, except that all dependencies of the bundled modules are also detected and bundled. This function has the same constraints asbundle_deps. π
π BUGS π
Please report any bugs to (patches welcome):
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-Install
π AUTHORS π
Audrey Tang <autrijus@autrijus.org>
Documentation by Adam Foxson <afoxson@pobox.com>
π COPYRIGHT π
Copyright 2003, 2004, 2005 by Audrey Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
byeee bestie π«Ά β this page came from perl v5.42.0, dated 2023-04-29, and it's the Module:...::Bundle(3) manual, mwah π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Module-Install 1.21-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms