Re: Auto installdirs

[email protected] (Michael G Schwern)
Newsgroups perl.module.build
Message-ID <[email protected]>
Ken Williams wrote:
> One problem with this solution to setting installdirs:
> 
>   installdirs   => ($] >= 5.009004 ? 'core' : 'site'),   #A
> 
> is that an auto-generated Makefile.PL will get a static setting for
> INSTALLDIRS.  This is of course the problem with any dynamic settings
> in Build.PL that are expected to propagate to Makefile.PL (or META.yml
> for that matter) - they get frozen at `Build dist` time.
> 
> One way to solve this particular item would be like so:
> 
>   installdirs_auto   => 5.009004,  #B

became_core_at?


> which would effectively function like #A, and generate in the Makefile.PL:
> 
>   INSTALLDIRS   => ($] >= 5.009004 ? 'perl' : 'site'),  #C
> 
> Now, does that do everything we'd want?  What about the 'vendor' dirs?
>  Are those ever even fricking used anyway?

vendor is used for modules that come from OS vendor packages, rpm, dpkg, 
etc....  But you would never have a reason to hard code vendor.


-- 
There will be snacks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.