This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch revert-2596-py/setup
in repository https://gitbox.apache.org/repos/asf/fory.git

commit de198082980827850945ec4a415da6f0fec87da7
Author: Shawn Yang <[email protected]>
AuthorDate: Wed Sep 10 00:57:07 2025 +0800

    Revert "fix(python): Fix the build dependency failure that occurred in 
pyfory…"
    
    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 0e4a58b8f..d31f5544f 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 @@ class BinaryDistribution(Distribution):
             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):


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to