s-zeng / dhall-python

Up-to-date and maintained python bindings for dhall, a functional configuration language
https://pypi.org/project/dhall/
Apache License 2.0
44 stars 6 forks source link

[Installation Bug] Pip installation of the `dhall` package fails on M1 Macbooks #32

Open gizmo385 opened 3 years ago

gizmo385 commented 3 years ago

Attempting to run pip install dhall on an M1 macbook fails:

~ ⌚ 21:27:32
$ source dhall-bug-venv/bin/activate
(dhall-bug-venv)
~ ⌚ 21:27:35
$ pip --version
pip 19.2.3 from /Users/gizmo385/dhall-bug-venv/lib/python3.8/site-packages/pip (python 3.8)
(dhall-bug-venv)
~ ⌚ 21:27:39
$ uname
Darwin
(dhall-bug-venv)
~ ⌚ 21:27:43
$ pip install dhall
Collecting dhall
  ERROR: Could not find a version that satisfies the requirement dhall (from versions: none)
ERROR: No matching distribution found for dhall
WARNING: You are using pip version 19.2.3, however version 21.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

The only way to get it installed is to point at the git coordinate and have it manually rebuild the wheel. My theory on the cause is that there isn't a compatible wheel being pushed to PyPI for M1 Macbooks?

Screen Shot 2021-05-28 at 9 29 11 PM
s-zeng commented 3 years ago

Hey, sorry for seeing this so late. I've been a bit busy and I don't have access to an M1 macbook, so it may be a while before I can get to this. I'll see if I can get an m1 wheel up on github actions, but I can't promise any timelines

Edit: looks like we're blocked on github https://github.com/actions/virtual-environments/issues/2187

Until github actions supports M1 mac, I don't think there's anything that can be done here, short of someone buying an M1 mac specifically to use as a build server for us, or some other cross compilation option being out there that I don't know about.

starcraft66 commented 1 year ago

Would it be possible to at least publish a source distribution on PyPI to sidestep this problem partially and let the package be built on the user's machine?