如何让 Module::Build 同时安装 X 和 X::Y?

发布于 2024-08-10 06:54:33 字数 313 浏览 3 评论 0原文

如果我的发行版中也包含 X 和 X::Y,如何让 Module::Build 安装这两个模块?我已将 X.pm 放入 lib 中,编写了一个文件 Build.PL ,其中包含以下行

my $build = Module::Build->new
    (
     module_name => "X",
 );

This installs X OK,但是我如何告诉 Module ::构建时还可以在发行版中包含 X::Y 吗?

If I have a distribution with X and X::Y also in it, how do I make Module::Build install both the modules? I have put X.pm in lib, written a file Build.PL with the line

my $build = Module::Build->new
    (
     module_name => "X",
 );

This installs X OK, but how do I tell Module::Build to also include X::Y in the distribution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

辞取 2024-08-17 06:54:33

Module::Build 应该自动查找并安装这两个模块,尽管您应该向它指出(在 Build.PL 中)分发名称/版本来自哪一个。

尝试使用 module-starter 创建您的发行版并让它关心细节?

module-starter -mb --module=X --module=X::Y --author=Me [email protected]

Module::Build should automatically find and install both modules, though you should indicate to it (in Build.PL) which one the distribution name/version is taken from.

Try creating your distribution with module-starter and let it worry about the details?

module-starter -mb --module=X --module=X::Y --author=Me [email protected]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文