Opened 9 years ago

Closed 9 years ago

#50222 closed update (fixed)

py-netcdf4: update to version 1.2.2, add support for Python 3.5

Reported by: mojca (Mojca Miklavec) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: jswhit (Jeff Whitaker)
Port: py-netcdf4

Description

I'm attaching a patch for an update of py-netcdf4 to version 1.2.2, also adding support for python 3.5.

Some warnings show up that might be worth looking into:

In file included from netCDF4/_netCDF4.c:269:
In file included from /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781:
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
netCDF4/_netCDF4.c:6459:86: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types]
      __pyx_v_ierr = nc_put_att_string(__pyx_t_6, __pyx_v_varid, __pyx_v_attname, 1, (&__pyx_v_datstring));
                                                                                     ^~~~~~~~~~~~~~~~~~~~
/opt/local/include/netcdf.h:1041:30: note: passing argument to parameter 'op' here
                  size_t len, const char **op);
                                           ^
2 warnings generated.

but I'm not sure where it comes from and it might not be relevant at all.

Attachments (1)

py-netcdf4-1.2.2.diff (1.0 KB) - added by mojca (Mojca Miklavec) 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by mojca (Mojca Miklavec)

Attachment: py-netcdf4-1.2.2.diff added

comment:1 Changed 9 years ago by mojca (Mojca Miklavec)

Summary: py-netcdf4: update to version 1.2.2, add support for Yython 3.5py-netcdf4: update to version 1.2.2, add support for Python 3.5

comment:2 Changed 9 years ago by seanfarley (Sean Farley)

Thanks, I was planning on fixing the mpi stuff as well today. The warning is from upstream, it seems.

comment:3 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

Fixed in r144291. Thanks for the patch!

Note: See TracTickets for help on using tickets.