Fix stubgen (#2942)

This commit is contained in:
Cheng
2025-12-22 09:42:20 +09:00
committed by GitHub
parent c0fea26ed2
commit b01fc7eac7
+1 -4
View File
@@ -181,7 +181,7 @@ class GenerateStubs(Command):
pass
def run(self) -> None:
out_path = "python/mlx/core"
out_path = "python/mlx"
stub_cmd = [
"python",
"-m",
@@ -192,9 +192,6 @@ class GenerateStubs(Command):
"python/mlx/_stub_patterns.txt",
]
subprocess.run(stub_cmd + ["-r", "-O", out_path])
# Run again without recursive to specify output file name
subprocess.run(["rm", f"{out_path}/mlx.pyi"])
subprocess.run(stub_cmd + ["-o", f"{out_path}/__init__.pyi"])
class MLXBdistWheel(bdist_wheel):