Re: [Module::Build] M::B and no_index
Status: Beta
Brought to you by:
kwilliams
From: Johan V. <jvr...@sq...> - 2006-03-25 10:53:35
|
"Randy W. Sims" <ml...@th...> writes: > the build script should work fine without those changes. I just > remembered that we store the @INC and hard code it into the 'Build' > script. > use lib 'inc'; > use Module::Build; > > ... > > $builder->create_build_script(); 1. Almost. For example, I use "use lib '.'" to get '.' as the first location to try. In the default perl @INC, '.' is the last entry. But since '.' occurs in the default @INC, it will not be written to the Build script, and the effect of "use lib '.'" is lost. Now, I cannot imagine people deliberately mixing up @INC, but putting '.' in front seems not uncommon to me. Why not change the "push @INC ..." code to "@INC = ( ... )" and supply the exact actual inc path? 2. This is also the easiest solution for me: move the addtional modules to inc and all is fine. No other changes necessary. Thanks for the good work! -- Johan |