CPANPL...::Build(3pm)
π CPANPL...::Build β the perl man page, but make it a group chat π
okay bestie, so this is CPANPL...::Build from the User Contributed Perl Documentation section of your friendly neighbourhood perl man pages (that's section 3pm for the uninitiated). It's a CPANPLUS plugin situation and honestly? it's giving "does the thing so you don't have to". π«Ά
VERSION: version 0.90 β¨
πΈ NAME πΈ
CPANPLUS::Dist::Build β it's a CPANPLUS plugin that installs packages which use Build.PL. no cap. that's the whole gig. π
β¨ SYNOPSIS β¨
look at her go:
my $build = CPANPLUS::Dist->new(
format => 'CPANPLUS::Dist::Build',
module => $modobj,
);
$build->prepare; # runs Build.PL
$build->create; # runs build && build test
$build->install; # runs build install
see how it's literally just prepare, create, install? main character energy fr fr. π
π¦ DESCRIPTION π¦
CPANPLUS::Dist::Build is a distribution class for modules related to Module::Build. Using this package, you can create, install and uninstall perl modules. She inherits from CPANPLUS::Dist, as one does. π
Normal users won't have to worry about the interface to this module, because it functions transparently as a plug-in to CPANPLUS and will just "Do The Right Thing" when it's loaded. iconic behaviour honestly. no notes. π
π ACCESSORS π
parent()β Returns theCPANPLUS::Moduleobject that parented this object. it's giving family tree. π³status()β Returns theObject::Accessorobject that keeps the status for this module. the vibe check holder, if you will. β¨
π STATUS ACCESSORS π
All accessors can be accessed like this, bestie:
$build->status->ACCESSOR
build_pl ()β Location of the Build file. Set to0explicitly if something went wrong. πbuild ()β BOOL indicating if theBuildcommand was successful.test ()β BOOL indicating if theBuild testcommand was successful.prepared ()β BOOL indicating if thepreparecall exited successfully. This gets set afterperl Build.PL.distdir ()β Full path to the directory in which thepreparecall took place, set after a call toprepare.created ()β BOOL indicating if thecreatecall exited successfully. This gets set afterBuildandBuild test.installed ()β BOOL indicating if the module was installed. This gets set afterBuild installexits successfully.uninstalled ()β BOOL indicating if the module was uninstalled properly._create_args ()β Storage of the arguments passed tocreatefor this object. Used for recursive calls when satisfying prerequisites. yes she's recursive, she contains multitudes. π_install_args ()β Storage of the arguments passed toinstallfor this object. Used for recursive calls when satisfying prerequisites.
π₯ METHODS π₯
$bool = CPANPLUS::Dist::Build->format_available();
Returns a boolean indicating whether or not you can use this package to create and install modules in your environment. it's a vibe check on your whole setup, honestly. π«Ά
$bool = $dist->init();
Sets up the CPANPLUS::Dist::Build object for use. Effectively creates all the needed status accessors. β¨
Called automatically whenever you create a new CPANPLUS::Dist object. so like, you don't have to do anything. she's self-sufficient. π
$bool = $dist->prepare([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])
prepare prepares a distribution, running Build.PL and establishing any prerequisites this distribution has. getting her ready for the big moment. π
The variable PERL5_CPANPLUS_IS_EXECUTING will be set to the full path of the Build.PL that is being executed. This enables any code inside the Build.PL to know that it is being installed via CPANPLUS. iykyk. π
After a successful prepare you may call create to create the distribution, followed by install to actually install it.
Returns true on success and false on failure. periodt.
$dist->create([perl => '/path/to/perl', buildflags => 'EXTRA=FLAGS', prereq_target => TARGET, force => BOOL, verbose => BOOL, skiptest => BOOL])
create preps a distribution for installation. This means it will run Build and Build test. This will also satisfy any prerequisites the module may have. doing the absolute most, and we love her for it. π₯
If you set skiptest to true, it will skip the Build test stage. If you set force to true, it will go over all the stages of the Build process again, ignoring any previously cached results. It will also ignore a bad return value from Build test and still allow the operation to return true. (yes, force is that girl. she does not care. π€)
Returns true on success and false on failure.
You may then call $dist->install on the object to actually install it.
$dist->install([verbose => BOOL, perl => /path/to/perl])
Actually installs the created dist. the moment we've all been waiting for. π β¨
Returns true on success and false on failure.
π PROMINENCE π
Originally by Jos Boumans <kane@cpan.org>. Brought to working condition by Ken Williams <kwilliams@cpan.org>. π«Ά
Other hackery and currently maintained by Chris "BinGOs" Williams ( no relation ). <bingos@cpan.org>.
not me being obsessed with the "( no relation )" note. that's so real. π
π§ AUTHOR π§
Jos Boumans <kane[at]cpan.org>, Ken Williams <kwilliams@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Jos Boumans, Ken Williams, Chris Williams and David Golden.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie!! this was rendered with perl v5.32.1, dated 2022-01-01, under the CPANPL...::Build(3pm) header. slay, mwah, go install some modules πππ¦πΈβπ
π¦ where this page comes from
- debian bookworm: libcpanplus-dist-build-perl 0.90-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libcpanplus-dist-build-perl 0.90-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcpanplus-dist-build-perl 0.90-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms