Re: [Module::Build] M::B and no_index
Status: Beta
Brought to you by:
kwilliams
From: Randy W. S. <ml...@th...> - 2006-04-09 05:26:21
|
Johan Vromans wrote: > "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? I don't see any other way around this if we want to preserve order of @INC correctly. Either we restore the exact contents of @INC when running Build or if we think the @INC is going to have more additions beteen invokations we can do something like in the attached patch. Any thoughts on this Ken? Randy. |