Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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."

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, );


    $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\

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (16)
As of 2014-10-21 16:01 GMT
Find Nodes?
    Voting Booth?

    For retirement, I am banking on:

    Results (105 votes), past polls