Skip to content

Commit b33b034

Browse files
authored
chore: Revert "fix(python): Fix the build dependency failure that occurred in pyfory" (#2597)
Reverts #2596
1 parent 3141860 commit b33b034

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,15 @@ class BinaryDistribution(Distribution):
4545
def __init__(self, attrs=None):
4646
super().__init__(attrs=attrs)
4747
if BAZEL_BUILD_EXT:
48-
cwd_path = os.path.normpath(project_dir)
49-
subprocess.check_call(["bazel", "clean", "--expunge"], cwd=cwd_path)
50-
5148
bazel_args = ["bazel", "build", "-s"]
5249
arch = platform.machine().lower()
5350
if arch in ("x86_64", "amd64"):
5451
bazel_args += ["--config=x86_64"]
5552
elif arch in ("aarch64", "arm64"):
5653
bazel_args += ["--copt=-fsigned-char"]
5754
bazel_args += ["//:cp_fory_so"]
55+
# Ensure Windows path compatibility
56+
cwd_path = os.path.normpath(project_dir)
5857
subprocess.check_call(bazel_args, cwd=cwd_path)
5958

6059
def has_ext_modules(self):

0 commit comments

Comments
 (0)