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

No wheels for Linux aarch64 (ARM) #111

Open
dan-blanchard opened this issue Sep 23, 2024 · 6 comments
Open

No wheels for Linux aarch64 (ARM) #111

dan-blanchard opened this issue Sep 23, 2024 · 6 comments

Comments

@dan-blanchard
Copy link

I have noticed that when I try to install scs-python on a Linux ARM (aarch64) machine, there are no wheels for it on PyPI.

I looked into it briefly, and it appears if you follow the instructions here you should be able to pretty easily add those to your build matrix.

@bodono
Copy link
Owner

bodono commented Sep 24, 2024

On pypi I see arm64 wheels: https://pypi.org/project/scs/#files

Are they not working? Or are you saying that the problem is they are for mac-os rather than linux?

@dan-blanchard
Copy link
Author

dan-blanchard commented Sep 24, 2024

Yeah, those are just for macOS. Linux ARM ones are called aarch64, and have to be built via emulation like in the docs I linked.

For example, if you look at the available scipy wheels, you'll see files that end with manylinux2014_aarch64.whl
image

@matteoettam09
Copy link

matteoettam09 commented Dec 9, 2024

Any progress on this? I am also having issues on Linux aarch64 (ARM):

uv pip install scs
Resolved 3 packages in 24ms
  × Failed to download and build `scs==3.2.7`
  ╰─▶ Build backend failed to build wheel through `build_wheel` (exit status: 1)

      [stdout]
      The Meson build system
      Version: 1.6.0
      Build type: native build
      Project name: scs
      Project version: undefined
      C compiler for the host machine: cc (gcc 12.2.0 "cc (Raspbian 12.2.0-14+rpi1) 12.2.0")
      C linker for the host machine: cc ld.bfd 2.40
      Host machine cpu family: arm
      Host machine cpu: arm
      Library openblas found: YES

      import numpy as np
      try:
        incdir = os.path.relpath(np.get_include())
      except Exception:
        incdir = np.get_include()
      print(incdir)
      '` failed with status 1.

@matteoettam09
Copy link

matteoettam09 commented Dec 9, 2024

@Transurgeon
Copy link

This may do the trick here as well?

https://github.com/cvxpy/cvxpy/blob/096bdf1eb7c05e6c88d24d8435dceae2a2d1f816/.github/workflows/build.yml#L139

Do you mean adding the changes in that PR (cvxpy#2054) to the scs CI?
If so, I think that's a great idea and should hopefully fix the build issues :).

@matteoettam09
Copy link

Yes, that's what I was thinking. But didn't spend a lot of time looking at the current build of scs-python (nor cvxpy), just looked into exiting issues.

May find some time to look into this during the weekend, thanks. Open to alternatives, in the meantime.

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

4 participants