Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

ppm install without creating HTML documentation?

by strat (Canon)
on Apr 20, 2009 at 14:47 UTC ( #758733=perlquestion: print w/ replies, xml ) Need Help??
strat has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

Since I need to install a lot of Activestate-Perl-Modules by PPM, I am just writing a little setup script which works fine. Just one problem: it is by far too slow, since I install perl and a lot of modules on a network filesystem. Building html requires lots of time. I searched perlmonks and even google for an answer, but still haven't found what I've been looking for.

Q:\downloads\ppm-modules>ppm install Win32-Env-0.03.ppmx
Unpacking Win32-Env-0.03...done
Generating HTML for Win32-Env-0.03...done
Updating files in site area...done
2 files installed

Generating HTML takes up to 5 minutes per module.

Do you know a way to prevent generation of HTML documentation after installation of each single module with ppm install modulename.ppdx ?

I can create the documentation at the end with something like perl -MActivePerl::DocTools -e "UpdateHTML('wait')"

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Comment on ppm install without creating HTML documentation?
Select or Download Code
Re: ppm install without creating HTML documentation?
by ikegami (Pope) on Apr 20, 2009 at 15:16 UTC

    HTML doc generation is controlled by the following lines of ActivePerl::PPM::Client,

    my $install_html = eval { require ActivePerl::DocTools; }; $install_html = $args{install_html} if defined $args{install_html} +;

    Unfortunately, it's called by ActivePerl::PPM::GUI as follows:

    $ppm->install( area => $INSTALL_AREA, packages => \@install_pkgs, run_cb => \&run_cmd, );

    Fix:

    $ppm->install( area => $INSTALL_AREA, packages => \@install_pkgs, run_cb => \&run_cmd, ( exists($ENV{INSTALL_HTML}) ? ( install_html => $ENV{INSTALL_HTML} ) : () ), );

    That could be patched fairly easy.

    perl -i.bak -ple"s/\$ppm->install\(\K/exists(\$ENV{INSTALL_HTML}) ? ( +install_html => \$ENV{INSTALL_HTML} ) : ()," c:\progs\perl5100\lib\Ac +tivePerl\PPM\GUI.pm

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://758733]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-07-11 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (220 votes), past polls