mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
fix missing protobuf C extension on darwin-arm
This commit is contained in:
parent
f15fe9cf86
commit
13de09d783
1 changed files with 6 additions and 0 deletions
|
|
@ -111,6 +111,12 @@ def install_wheels_into_venv():
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[pip, "install", "--force-reinstall", "--no-deps", *wheels], check=True
|
[pip, "install", "--force-reinstall", "--no-deps", *wheels], check=True
|
||||||
)
|
)
|
||||||
|
# pypi protobuf lacks C extension on darwin-arm; use a locally built version
|
||||||
|
protobuf = Path.home() / "protobuf-3.19.1-cp39-cp39-macosx_11_0_arm64.whl"
|
||||||
|
if protobuf.exists():
|
||||||
|
subprocess.run(
|
||||||
|
[pip, "install", "--force-reinstall", "--no-deps", protobuf], check=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def build_artifacts():
|
def build_artifacts():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue