Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to release wheel for python 3.13/macos 13/arm? #1385

Open
jameswilburlewis opened this issue Nov 12, 2024 · 7 comments
Open

Possible to release wheel for python 3.13/macos 13/arm? #1385

jameswilburlewis opened this issue Nov 12, 2024 · 7 comments

Comments

@jameswilburlewis
Copy link

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?

@jswhit
Copy link
Collaborator

jswhit commented Nov 12, 2024

@jswhit
Copy link
Collaborator

jswhit commented Nov 12, 2024

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)

@jameswilburlewis
Copy link
Author

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....)

@jameswilburlewis jameswilburlewis changed the title Possible to release wheel for python 3.13/macos 13/amd? Possible to release wheel for python 3.13/macos 13/arm? Nov 12, 2024
@dopplershift
Copy link
Member

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:

Image

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).

@jameswilburlewis
Copy link
Author

jameswilburlewis commented Nov 12, 2024

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.

@dopplershift
Copy link
Member

@jameswilburlewis The link posted by @jswhit above doesn't say macosx_13? it says macosx_14.

@jswhit jswhit closed this as completed Nov 20, 2024
@jswhit jswhit reopened this Nov 20, 2024
@jameswilburlewis
Copy link
Author

[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...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants