Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: How to properly use ExtUtils::MakeMaker PL_FILES attribute?

by Anonymous Monk
on May 27, 2017 at 05:34 UTC ( [id://1191345]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to properly use ExtUtils::MakeMaker PL_FILES attribute?
in thread How to properly use ExtUtils::MakeMaker PL_FILES attribute?

can't use or require something that is declared as a prereqs and is still not available).

Yes you can, thats what META files are for, you simply tell writemakefile the depends, when you make dist METAL files are generated, then when user try to install cpan/cpanp/cpanm notice from metal files what the "BUILD_REQUIRES" ...

  • Comment on Re^3: How to properly use ExtUtils::MakeMaker PL_FILES attribute?

Replies are listed 'Best First'.
Re^4: How to properly use ExtUtils::MakeMaker PL_FILES attribute?
by glasswalk3r (Friar) on May 27, 2017 at 15:31 UTC
    Yes you can, thats what META files are for, you simply tell writemakefile the depends, when you make dist METAL files are generated, then when user try to install cpan/cpanp/cpanm notice from metal files what the "BUILD_REQUIRES" ...

    Not sure if this would work, specially because the distribution already generates the mentioned files (see here). Check out this test result too. I made a stupid mistake when trying to avoid calling Inline at each call, I just need to execute it once and write the constant elsewhere. But doing that inside the Makefile.PL is not an option... I could have used require inside a eval block to trap the exception, but then the module wouldn't be created anyway. The cpan client will search and install dependencies right after the Makefile.PL is executed, but then it is too late to use it for the code generation.

    A ".PL" file (as described by ExtUtils::MakeMaker) would be the best option, if I could control when it will be executed...

    Alceu Rodrigues de Freitas Junior
    ---------------------------------
    "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1191345]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-18 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found