Skip to content

Commit 3660703

Browse files
committed
Always remove build dir
1 parent ea632bf commit 3660703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def build_isa_l():
136136
subprocess.run(["make", "-j", str(cpu_count)],
137137
**run_args)
138138
subprocess.run(["make", "install"], **run_args)
139-
shutil.rmtree(build_dir)
140139
elif SYSTEM_IS_WINDOWS:
141140
subprocess.run(["nmake", "/f", "Makefile.nmake"], **run_args)
142141
Path(temp_prefix, "include").mkdir()
@@ -147,6 +146,7 @@ def build_isa_l():
147146
os.path.join(temp_prefix, "isa-l_static.lib"))
148147
else:
149148
raise NotImplementedError(f"Unsupported platform: {sys.platform}")
149+
shutil.rmtree(build_dir)
150150
return temp_prefix
151151

152152

0 commit comments

Comments
 (0)