netcdf4-python
netcdf4-python copied to clipboard
Possible to release wheel for python 3.13/macos 13/arm?
NetCDF4 version 1.7.2 does not include a python 3.13 wheel for Mac OS 13/ARM. Would it be possible to add this to the release, to make it easily pip-installable for this platform?
there is one for macos 14 at https://files.pythonhosted.org/packages/58/3e/5736880a607edabca4c4fc49f1ccf9a2bb2485f84478e4cd19ba11c3b803/netCDF4-1.7.2-cp313-cp313-macosx_14_0_arm64.whl
Does this one not work for you?
Note that we cannot provide macosx 13 arm wheels since github actions only has macox 14 arm platform support (https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners)
Oh, I see! Wow, macosx 14 has only been out a little over a year, so I'm surprised github dropped support already for 13. Is there a reason that wheel can't be uploaded to pypi? Anyway, thanks for pointing me toward pythonhosted.org -- I can at least refer to that in our package's installation guide. (Installing from conda-forge also worked, but some users are reluctant to mix pip and conda....)
I was looking and it seems like numpy has arm64 wheels targetting macos >= 11. I was wondering how, and it looks like they build those on Cirrus: https://github.com/numpy/numpy/blob/main/tools/ci/cirrus_wheels.yml. Not sure who has the appetite to reproduce, let alone maintain, that, but there is a possibility for a motivated individual.
Is there a reason that wheel can't be uploaded to pypi? Anyway, thanks for pointing me toward pythonhosted.org
I'm confused, pythonhosted.org is just the link on the main PyPI page? I see it there:
Installing from conda-forge also worked, but some users are reluctant to mix pip and conda....
It's a really bad idea to mix packages compiled for PyPI with those compiled with conda-forge. Best to use all or nothing, except in very specific circumstances (like a pure python package using pip).
~~The macosx_13 wheel is on pythonhosted.org, but I'm not seeing it on https://pypi.org/project/netCDF4/#files , and "pip install" on that platform can't find it, so tries to build locally from source.~~.
Sorry, misread what @jswhit was suggesting. I haven't tried the macosx_14 wheel to see if it works on 13.
@jameswilburlewis The link posted by @jswhit above doesn't say macosx_13? it says macosx_14.
[Sorry to bump...I accidentally deleted my older comment because I thought it had double-posted]
Thanks for pointing out that I had misread what jswhit was getting at.
To add a bit of context, I manage the pyspedas package, which has NetCDF4 as a dependency. Even if the macosx_14 wheel works on a macosx_13 system, it doesn't appear possible to write a requirements.txt file to use a nonstandard architecture that way.
But what if I were able to install the prerequisites and successfully build a macosx_13/arm wheel on my own? Would it be possible to get that uploaded to pypi? (I completely understand if you'd rather not, since that opens the door to all sorts of potential supply chain shenanigans...)