Doug Hunt writes:
> 
> Hi Chris: Thanks for you suggestion. I'm not sure
> I understand, though.
> 
> First of all, given that the most recent version
> of PDL::NetCDF is 4.07, would a file in the
> top level of the distribution tarball called
> 'version.pm', containing the text '4.07' or
> "$VERSION = '4.07';" help?

I think a version.pm with the line

$VERSION = '4.07'

and then changing the VERSION_FROM argument to the
WriteMakefile() call to 'version.pm' instead of
'netcdf.pd' should work (or something is really
wrong with the indexing).

> Secondly, I don't understand your second
> suggestion. What should I add where to netcdf.pd?
> I thought that the problem was that the CPAN
> indexer only looks at .pm files to find $VERSION,
> so why would special text in netcdf.pd help?

The thought was that the $VERSION check *might* not
care about the name of the file and, if so, the
problem could be the other processing being done
in the netcdf.pd file.  By putting the $VERSION
declaration at the top of the netcdf.pm file, I
was hoping to get it picked up correctly.

Changing the $VERSION = '4.07' to $VERSION = $PDFILE_VERSION
in the pp_addpm() call later in the file would then
duplicate the version information in the generated .pm
file output.

> I did do some reading in the module documentation
> on the CPAN site and concluded that adding
> the version to the META.yml file would help.
> Following this documentation, I added this line to
> Makefile.PL:
> 
> 'META_MERGE'   =>  {provides => {PDL::NetCDF => {file => 'netcdf.pd', version 
> => 4.07}}},
> 
> which added these lines to META.yml:
> 
> provides:
>     PDL::NetCDF
>       file: netcdf.pd
>       version: 4.07
> 
> This seemed to work when I submitted it to PAUSE.  I got a nice email 
> saying the indexer had found version 4.07.  But still after all that
> PDL::NetCDF cannot be downloaded or installed from the CPAN shell.
You could also just try to "Force Reindexing" from the
PAUSE page:

  https://pause.perl.org/pause/authenquery?ACTION=reindex

and if that fails (again), follow the directions on that
page to contact [email protected] with the problem.
Presumably, that would get you in contact with someone
who could actually figure out what is going on on the
PAUSE/CPAN end...

If you do contact them, please feel free to cc me or the
pdl-porters list so we can all understand the issue.  :-(

Good luck,
Chris

> Still puzzled,
> 
>    Doug
> 
> [email protected]
> Software Engineer
> UCAR - COSMIC, Tel. (303) 497-2611
> 
> On Wed, 2 Feb 2011, Chris Marshall wrote:
> 
> > I had another idea.  According to the description,
> > the $VERSION check by the PAUSE indexer is run
> > in a Safe compartment as well as needing to assign
> > on one line.
> >
> > The .pd file a perl file so what happens if you
> > try something like this at the top:
> >
> >  my $PDFILE_VERSION = '4.07'; $VERSION = $PDFILE_VERSION;
> >
> > of netcdf.pd and then change the here document
> > with the pp_addpm() for the $VERSION assignment
> > to qq() based and use this as the assignment:
> >
> >  $VERSION = $PDFILE_VERSION;
> >
> > Cheers,
> > Chris
> >
> > On 2/1/2011 8:12 PM, Chris Marshall wrote:
> >> Hi Doug-
> >> 
> >> Did you ever try adding an auxiliary version.pm file
> >> with just the desired version number in that?  Then
> >> you would need to refer to that for the module version.
> >> 
> >> --Chris
> >> 
> >> On 2/1/2011 6:16 PM, Doug Hunt wrote:
> >>> Hi Ivan:  I've done some work lately trying to get this indexed correctly,
> >>> but to no avail.  The only way I can get this to work is to bypass the
> >>> CPAN shell and download the PDL::NetCDF.tar.gz directly.  Then untar, perl
> >>> Makefile.PL; make; make test; make install.
> >>> 
> >>> You also need to set environment variables to tell it where to find the
> >>> netcdf include files and library.
> >>> 
> >>> PDL::NetCDF is working just fine and continues to be maintained.
> >>> 
> >>> Regards,
> >>>
> >>>      Doug
> >>> 
> >>> [email protected]
> >>> Software Engineer
> >>> UCAR - COSMIC, Tel. (303) 497-2611
> >>> 
> >>> On Wed, 2 Feb 2011, Ivan Shmakov wrote:
> >>>
> >>>>  I've tried to install PDL::NetCDF with $ cpan PDL::NetCDF, yet
> >>>>  it failed with:
> >>>> 
> >>>> CPAN: Storable loaded ok (v2.20)
> >>>> Going to read '/.../.cpan/Metadata'
> >>>>    Database was generated on Tue, 01 Feb 2011 19:38:59 GMT
> >>>> Running install for module 'PDL::NetCDF'
> >>>>
> >>>>    The module PDL::NetCDF isn't available on CPAN.
> >>>>
> >>>>    Either the module has not yet been uploaded to CPAN, or it is
> >>>>    temporary unavailable. Please contact the author to find out
> >>>>    more about the status. Try 'i PDL::NetCDF'.
> >>>>
> >>>>  Doing as suggested, I get:
> >>>> 
> >>>> CPAN: Storable loaded ok (v2.20)
> >>>> Going to read '/.../.cpan/Metadata'
> >>>>    Database was generated on Tue, 01 Feb 2011 19:38:59 GMT
> >>>> Module id = PDL::NetCDF
> >>>>      DESCRIPTION  Reads/Writes NetCDF files from/to PDL objs
> >>>>      CPAN_USERID  DHUNT (Douglas Hunt<[email protected]>)
> >>>>      CPAN_VERSION undef
> >>>>      CPAN_FILE    Contact Author Douglas Hunt<[email protected]>
> >>>>      DSLIP_STATUS RdcOp 
> >>>> (released,developer,C,object-oriented,Standard-Perl)
> >>>>      INST_FILE    (not installed)
> >>>>
> >>>>  So I'm still curious as to what's up with the package?
> >>>>
> >>>>  TIA.
> >

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to