Files
mozc/use-system-python.patch

56 lines
1.7 KiB
Diff
Raw Permalink Normal View History

Accepting request 1279813 from home:ftake:branches:M17N - Upstream update to 2.31.5810.102 * Added 部首 annotation to the description (#1165) * Added OOV words like インティマシー, PFAS * Added romaji conversion rule from "tch" to "っ + ch". * Updated the Zip code data as-of 2025-03-08. * Added ".tsv" files to the default dictionary file types of the dictionary tool GUI * Linux: fix the preedit string state when it's empty (#1174) * Linux: fix configuration example for enabling JIS layout (#1237) - Upstream update to 2.31.5712.102 * Updated the LM dictionary * Updated symbols (#1074, #1100) * Updated emoji data to CLDR 46 (Emoji 16.0) * Fixed conversion errors - Upstream update to 2.30.5618.102 * Updated zip code entries (#1063). * Updated word entries (#1068, #1069) * Linux: Enabled switching to the DIRECT mode from the menu (#1061) * Linux: Enabled switching modes with Super+Space in Wayland (#853, #1059) - Upstream update to 2.30.5595.102 * Added words based on the reports from contributors * Updated the collocation data based on the reports from contributors - Upstream update to 2.30.5544.102 * Updated the word dictionary * Added words based on the GitHub issues - Upstream update to 2.30.5520.102 * Improved the AD to Era conversion: "2024ねん" → "令和6年" * Increased word vocabulary * Updated the reading correction rules - Upstream update to 2.30.5490.102 * Added more symbol characters (#933) * Added words of 対象内 / 対象外 by fixing the format error (#928) * Fixed the crash issue on saving the user dictionary * Fixed the crash issue on the debug build caused by converting negative numbers (#878) - Upstream update to 2.30.5448.102 * Updated the word dictionary * Improved the usability of era-to-ad conversion (れいわ6ねん→2024年) * Linux: Prevent executing multiple candidate windows (#912) - Upstream update to 2.30.5432.102 * Supported the conversion from "なう" to date/time (i.e. 2024/12/31 23:59) * Supported loading user dictionary files exported from Gboard * Fixed voiced Katakana conversion from ゑ (ヸ → ヹ) * Improved the about dialog with the dark mode (#897) * Linux: Improved the candidate UI with HiDPI displays (#823) * Remove ibus-mozc-candidate-window-qt-virtual-coordinate.patch merged by the upstream - Upstream update to 2.29.5400.102 * Updated Emoji entries - Upstream update to 2.29.5346.102 * Updated the year to 2024 * Added 歲 (U+6B72) as a 旧字体 of 歳 (U+6B73) (#860) * Updated the Emoji version to 15.1 - Upstream update to 2.29.5288.102 * Updated the word dictionary * Adjusted the conversion with suffix numbers (e.g. 後に vs あと2). - Change the default Fcitx version to 5 for building - Update fcitx-mozc * Refresh fcitx-mozc-bazel-build.patch - Fix file names of Fcitx5 icons * Remove fcitx5-mozc-fix.patch - Migrate to Bazel Module * Remove add-sha256sum-for-zipcode-archives.patch * Remove support-python-3.6.patch * Add use-system-python.patch * Add use-system-python-3.12.patch OBS-URL: https://build.opensuse.org/request/show/1279813 OBS-URL: https://build.opensuse.org/package/show/M17N/mozc?expand=0&rev=116
2025-05-25 08:35:27 +00:00
diff --git a/src/MODULE.bazel b/src/MODULE.bazel
index e432cdd16..a2019fd48 100644
--- a/src/MODULE.bazel
+++ b/src/MODULE.bazel
@@ -314,3 +314,5 @@ http_archive(
sha256 = "1c56e79ff4c7f709778e0bf4dfbffdf939efd170845feccae986d22cf4373988",
url = "https://github.com/hiroyuki-komatsu/japanpost_zipcode/raw/6ece210081fb73d0ea4a5ea8e13ac9584d03fd76/jigyosyo.zip",
)
+
+register_toolchains("//python_toolchain:all")
diff --git a/src/python_toolchain/BUILD.bazel b/src/python_toolchain/BUILD.bazel
new file mode 100644
index 000000000..7e27670ea
--- /dev/null
+++ b/src/python_toolchain/BUILD.bazel
@@ -0,0 +1,39 @@
+package(default_visibility = ["//visibility:public"])
+
+load("@rules_python//python/cc:py_cc_toolchain.bzl", "py_cc_toolchain")
+load("@rules_python//python:py_exec_tools_toolchain.bzl", "py_exec_tools_toolchain")
+load("@rules_python//python:py_runtime.bzl", "py_runtime")
+load("@rules_python//python:py_runtime_pair.bzl", "py_runtime_pair")
+
+py_runtime(
+ name = "runtime",
+ interpreter_path = "/usr/bin/python3",
+ python_version = "PY3",
+)
+
+py_runtime_pair(
+ name = "runtime_pair",
+ py3_runtime = ":runtime",
+)
+
+py_exec_tools_toolchain(
+ name = "exec_tools_toolchain_impl",
+ exec_interpreter = None,
+)
+
+toolchain(
+ name = "runtime_toolchain",
+ toolchain = ":runtime_pair",
+ toolchain_type = "@rules_python//python:toolchain_type",
+)
+toolchain(
+ name = "py_cc_toolchain",
+ toolchain = "//toolchain_impl:py_cc_toolchain_impl",
+ toolchain_type = "@rules_python//python/cc:toolchain_type",
+)
+
+toolchain(
+ name = "py_exec_tools_toolchain",
+ toolchain = ":exec_tools_toolchain_impl",
+ toolchain_type = "@rules_python//python:exec_tools_toolchain_type",
+)