sqloxide icon indicating copy to clipboard operation
sqloxide copied to clipboard

No aarch64 linux wheels are available

Open callado4 opened this issue 3 years ago • 5 comments

When trying to install the library on a docker container (python:3.8) running on an M1 Mac, the install fails. Looking at pypi I don't see any *linux_aarch64.whl files - I was able to build one running some of the scripts in build-wheel.sh but I'm not sure yet how to use that file in my own docker container (especially when trying to add the library via poetry).

callado4 avatar Feb 19 '22 00:02 callado4

@callado4 I don't have access to an M1 Mac machine to do builds on, would happily add support for this if it could be done via github actions, but I think we are blocked by: https://github.com/actions/virtual-environments/issues/2187

wseaton avatar Feb 21 '22 14:02 wseaton

Actually sorry, looks like you are requesting just a different target linux architecture and not an actual M1 native build since you are running via docker on darwin. I think this is possible to support via a multi-arch build, but I'll have to dig into this when I have free time.

wseaton avatar Feb 21 '22 14:02 wseaton

Hi @wseaton! Perhaps using qemu + cibuildwheel could be an easy solution?

kakoni avatar May 30 '22 07:05 kakoni

Hi @wseaton , I have a dev script that build a docker container of my app, and it fails on mac m1 (and works on ubuntu). Simple Docker build and try to install sqloxide.

What can I do to help with one?

yuval-illumex avatar Aug 22 '22 09:08 yuval-illumex

@wseaton I checked https://github.com/pypa/cibuildwheel, they support building python package for ARM64. Can we use this here?

piyushdatazip avatar Sep 30 '22 06:09 piyushdatazip

Any update on this? Apache superset seems to be using this package and i am stuck here as i cannot build a custom docker image without sqloxide providing arm support.

I know you all are very busy, just want an estimate of timeline as to by when would this be possible.

Once again, very thankful for all that you do. Thanks.

kushagarr avatar Nov 01 '22 23:11 kushagarr

Facing the same issue using Superset custom docker image due to Mac M1 linux/arm64/v8 architecture

tomtom215 avatar Nov 03 '22 16:11 tomtom215

If you are an arm user and have the rust toolchain installed and install sqloxide from git, you should be able to build the .whl you need locally (poetry should hook setuptools-rust), then just copy it into your container image. Basically the same thing that connectorx does: https://sfu-db.github.io/connector-x/install.html#build-from-source-code

Until Github Actions has support for arm build environments I can't provide wheels myself, as this is a spare time project. Contributions to the CI are welcome.

Also, while it's cool to see superset using this package to speed up database migrations, it is less cool to have users drawn here specifically for M1 support, especially since AFAIK it's an optional dependency.

wseaton avatar Nov 03 '22 17:11 wseaton