Skip to content

Commit

Permalink
Backport rpi fix from main
Browse files Browse the repository at this point in the history
  • Loading branch information
perklet committed May 14, 2024
1 parent 47b6c9a commit a2dbe60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "curl_cffi"
version = "0.6.3"
version = "0.6.4"
authors = [{ name = "Yifei Kong", email = "kong@yifei.me" }]
description = "libcurl ffi bindings for Python, with impersonation support."
license = { file = "LICENSE" }
Expand Down
6 changes: 4 additions & 2 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ def detect_arch():
with open(Path(__file__).parent.parent / "libs.json") as f:
archs = json.loads(f.read())

uname = platform.uname()
glibc_flavor = "gnueabihf" if uname.machine in ["armv7l", "armv6l"] else "gnu"

libc, _ = platform.libc_ver()
# https://github.com/python/cpython/issues/87414
libc = "gnu" if libc == "glibc" else "musl"
uname = platform.uname()
libc = glibc_flavor if libc == "glibc" else "musl"
pointer_size = struct.calcsize("P") * 8

for arch in archs:
Expand Down

0 comments on commit a2dbe60

Please sign in to comment.