Opened 3 months ago

Last modified 3 months ago

#70542 new request

Zarr-Python on MacPorts?

Reported by: ogourgue (Olivier Gourgue) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.0
Keywords: Cc: petrrr, jmroot (Joshua Root)
Port: py-xarray

Description

I am using Python and Xarray from MacPorts, which work very well. Many thanks for the amazing work by the maintainers and the community. However, I would like to use the function open_zarr from Xarray (https://docs.xarray.dev/en/stable/generated/xarray.open_zarr.html), but it does not work because Zarr-Python (https://zarr.readthedocs.io/en/stable/) is not installed. To reproduce the error in Python:

import xarray
ds = open_zarr('')

Would that be possible to have Zarr-Python on MacPorts (either as part of Xarray or as separate port). Thank you for your help!

Change History (2)

comment:1 Changed 3 months ago by reneeotten (Renee Otten)

You are correct that there is currently no py-zarr package available in MacPorts. I took a quick look and adding it will require the additions of a few other dependencies that are currently not packaged; I didn't follow it all the way down the dependency tree to see how many packages would be needed. Of course, if you're interested in contributing the package you should feel free to try and get it working locally and then submit a PR.

The upt package/port can help generating fairly complete Python Portfiles (and even do so recursively for all packages that are currently not yet available), but it will always need more-or-less manual fine-tuning. Let us know if you want to get started at this and I am happy to help and review a PR or answer questions. I might take a look myself at some point, but I can't promise any timelines of that happening...

comment:2 Changed 3 months ago by ogourgue (Olivier Gourgue)

Thank you for your answer. I am not sure I am comfortable enough to do it myself. I am eager to learn, but I don't really have the time right now. So far, I am using a workaround via micromamba, which works fine for my current usage. I might come back to you later (this Fall?) if I find more time to try it myself.

Note: See TracTickets for help on using tickets.