如何让 Module::Build 同时安装 X 和 X::Y?
如果我的发行版中也包含 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Module::Build 应该自动查找并安装这两个模块,尽管您应该向它指出(在 Build.PL 中)分发名称/版本来自哪一个。
尝试使用 module-starter 创建您的发行版并让它关心细节?
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?