Re: [Module::Build] How to require an MB subclass in a CPAN friendly way?
Status: Beta
Brought to you by:
kwilliams
|
From: <and...@fr...> - 2006-02-18 11:26:37
|
>>>>> On Fri, 17 Feb 2006 11:53:50 -0800, Tyler MacDonald <ty...@yi...> said: > Stephen Adkins <spa...@gm...> wrote: >> Hi, >> >> If I understand the problem right, it is that you wish to use a module in the >> current distribution (a subclass of Module::Build) to do the installing. >> If this is correct, you only need to put a 'use lib "lib";' in your Build.PL >> for it to be picked up properly. (It does not need to be installed in the >> standard places before you use it.) > Nope, that problem is handled already in > DBIx::Migration::Directories. > I now have a Schema::RDBMS::AUS package, which needs the subclass > that DBIx::Migration::Directories supplies. > DBIx::Migration::Directories::Build needs to be available at the time > Build.PL is run so that it can alter Module::Build's config and supply extra > actions. Add it to your "requires" hash, that way it will end up in META.yml and if people have YAML installed, they can read it and everything should work as you want. If people have YAML not installed they will call either the Makefile.PL or the Build.PL to hopefully find out what the prerequisites are. That way you get the prerequisites but as you have noticed, it is too late for your build process. I don't know how I will fix that. Suggestions welcome. I put it into my Todo file. -- andreas |