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?

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?

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.

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