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

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git


The following commit(s) were added to refs/heads/main by this push:
     new b33b034a9 chore: Revert "fix(python): Fix the build dependency failure 
that occurred in pyfory" (#2597)
b33b034a9 is described below

commit b33b034a978bf39838c496d37b7728da84779274
Author: Shawn Yang <[email protected]>
AuthorDate: Wed Sep 10 01:13:58 2025 +0800

    chore: Revert "fix(python): Fix the build dependency failure that occurred 
in pyfory" (#2597)
    
    Reverts apache/fory#2596
---
 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