Changeset View
Changeset View
Standalone View
Standalone View
games/anki/files/patch-pylib_anki_BUILD.bazel
Avoid loading of "requirements.bzl" because it requires "pip_import" which | Avoid loading of "requirements.bzl" because it requires "pip_import" which | ||||
is already disabled in "defs.bzl". | is already disabled in "defs.bzl". | ||||
--- pylib/anki/BUILD.bazel.orig 2021-07-30 08:30:37 UTC | --- pylib/anki/BUILD.bazel.orig 2022-06-24 05:10:06 UTC | ||||
+++ pylib/anki/BUILD.bazel | +++ pylib/anki/BUILD.bazel | ||||
@@ -1,6 +1,5 @@ | @@ -1,6 +1,5 @@ load("@rules_python//python:defs.bzl", "py_library") | ||||
load("@bazel_skylib//rules:copy_file.bzl", "copy_file") | load("@bazel_skylib//rules:copy_file.bzl", "copy_file") | ||||
load("@rules_python//python:defs.bzl", "py_library") | load("@rules_python//python:defs.bzl", "py_library") | ||||
-load("@py_deps//:requirements.bzl", "requirement") | -load("@py_deps//:requirements.bzl", "requirement") | ||||
load("@rules_python//experimental/python:wheel.bzl", "py_package", "py_wheel") | load("@rules_python//python:packaging.bzl", "py_package", "py_wheel") | ||||
load("//:defs.bzl", "anki_version") | load("//:defs.bzl", "anki_version") | ||||
load("//pylib:orjson.bzl", "orjson_if_available") | load("//pylib:orjson.bzl", "orjson_if_available") | ||||
@@ -41,15 +40,6 @@ py_library( | @@ -41,14 +40,6 @@ py_library( | ||||
visibility = ["//visibility:public"], | visibility = ["//visibility:public"], | ||||
deps = [ | deps = [ | ||||
":proto", | ":proto", | ||||
- requirement("beautifulsoup4"), | - requirement("beautifulsoup4"), | ||||
- requirement("decorator"), | - requirement("decorator"), | ||||
- requirement("distro"), | - requirement("distro"), | ||||
- requirement("protobuf"), | - requirement("protobuf"), | ||||
- requirement("requests"), | - requirement("requests"), | ||||
- requirement("flask"), | - requirement("flask"), | ||||
- requirement("waitress"), | - requirement("waitress"), | ||||
- requirement("markdown"), | - requirement("markdown"), | ||||
- requirement("stringcase"), | |||||
] + orjson_if_available(), | ] + orjson_if_available(), | ||||
) | ) | ||||
@@ -74,6 +64,7 @@ py_wheel( | @@ -77,6 +68,7 @@ py_wheel( | ||||
"//platforms:windows_x86_64": "win_amd64", | # you can adjust them to suit your enviroment | ||||
"//platforms:macos_x86_64": "macosx_10_7_x86_64", | "//platforms:linux_x86_64": "manylinux_2_28_x86_64", | ||||
"//platforms:linux_x86_64": "manylinux2014_x86_64", | "//platforms:linux_arm64": "manylinux_2_31_aarch64", | ||||
+ "//platforms:freebsd_x86_64": "freebsd_x86_64", | + "//platforms:freebsd_all": "freebsd_all", | ||||
"//platforms:linux_arm64": "manylinux2014_aarch64", | |||||
}), | }), | ||||
python_tag = "cp38", | python_tag = "cp39", | ||||
requires = [ |