From de198082980827850945ec4a415da6f0fec87da7 Mon Sep 17 00:00:00 2001 From: Shawn Yang Date: Wed, 10 Sep 2025 00:57:07 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(python):=20Fix=20the=20build=20de?= =?UTF-8?q?pendency=20failure=20that=20occurred=20in=20pyfory=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 67c028050b40af60e74c11b30c109b0d084d5906. --- python/setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/setup.py b/python/setup.py index 0e4a58b8fc..d31f5544fc 100644 --- a/python/setup.py +++ b/python/setup.py @@ -45,9 +45,6 @@ class BinaryDistribution(Distribution): def __init__(self, attrs=None): super().__init__(attrs=attrs) if BAZEL_BUILD_EXT: - cwd_path = os.path.normpath(project_dir) - subprocess.check_call(["bazel", "clean", "--expunge"], cwd=cwd_path) - bazel_args = ["bazel", "build", "-s"] arch = platform.machine().lower() if arch in ("x86_64", "amd64"): @@ -55,6 +52,8 @@ def __init__(self, attrs=None): elif arch in ("aarch64", "arm64"): bazel_args += ["--copt=-fsigned-char"] bazel_args += ["//:cp_fory_so"] + # Ensure Windows path compatibility + cwd_path = os.path.normpath(project_dir) subprocess.check_call(bazel_args, cwd=cwd_path) def has_ext_modules(self):