Re: [Module::Build] M::B and version.pm
Status: Beta
Brought to you by:
kwilliams
|
From: John P. <jpe...@ro...> - 2006-02-22 20:20:55
|
David E. Wheeler wrote:
> Actually, I'm running into an issue with the numify() support: it's
> misnaming my distributions! I have a module that uses version internally:
>
> our $VERSION = version->new('0.0.1');
>
> However, when I build a distribution with it, the tarball isn't named
> Foo-Bar-0.0.1.tar.gz. It's named Foo-Bar-0.000001.tar.gz!
That's what you asked it to do ('v0.0.1' => 0.000001). That's also what
PAUSE will use internally as the version for indexing purposes.
> Is there a way 'round this? Maybe dist_version could store the version
> object instead of the numified representation, so that the string format
> (v0.0.1) can be used where appropriate, and the numified representation
> (0.000001) can be used where appropriate?
Until M::B includes version object support internally, I don't see any
better way around it. Currently M::B immediately changes any version
object into a simple scalar (via numify now). Unless and until M::B has
a way to keep the version object around for later usage, it is going to
have to be either numify() *or* stringify() (and the latter has
significant problems).
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748
|