---
name: "Dist::Build::DynamicPrereqs"
section: "3pm"
platform: "linux"
package: "libdist-build-perl"
version: "0.020-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Dist::Build::DynamicPrereqs"
---

# Dist::Build::DynamicPrereqs(3pm)

Support dynamic prerequisites in Dist::Build

## NAME

Dist::Build::DynamicPrereqs - Support dynamic prerequisites in Dist::Build

## VERSION

version 0.020

## SYNOPSIS

```
 load_extension("Dist::Build::DynamicPrereqs");
 evaluate_dynamic_prereqs();
```

## DESCRIPTION

This extension adds support for configure-time dynamic prerequisites to `"Dist::Build"`.

## DELEGATES

This adds the following delegates to the planner:

### evaluate\_dynamic\_prereqs()

This evaluates the dynamic prerequisites (as CPAN::Requirements::Dynamic) in the metadata, and adds them to the prerequisites.

### add\_prereq($module, $version = 0, %args)

This adds a specific prerequisite. It takes the following (optional) named arguments:

- •

  phase

  A CPAN::Meta requirement phase: runtime (default), build or test

- •

  relation

  A CPAN::Meta requirement relation: requires (default, recommends or suggests

## AUTHOR

Leon Timmermans \<fawaka@gmail.com\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2024 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
