mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

While 32 bit platform support is probably not going to come back, this allows Anki to run on other architectures orjson doesn't support.
9 lines
253 B
Python
9 lines
253 B
Python
load("@py_deps//:requirements.bzl", "requirement")
|
|
|
|
def orjson_if_available():
|
|
"Include orjson if it's listed in requirements.txt."
|
|
target = requirement("orjson")
|
|
if "not_found" in target:
|
|
return []
|
|
else:
|
|
return [target]
|