From 135ce67f38e28c6a5c6534336087c99c220e138f Mon Sep 17 00:00:00 2001 From: qyh111 Date: Sat, 13 Dec 2025 04:37:54 -0800 Subject: [PATCH 1/2] fix setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 362da1aa..a3ec3610 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ def run(self): def build_cmake(self, ext: CMakeExtension): build_dir = os.path.abspath(self.build_temp) install_dir = os.path.abspath(self.build_lib) - if is_editable_mode: + if is_editable_mode(): install_dir = ext.cmake_file_path cmake_args = [ From 3aad91398652e1bb877b73a43e3314b821ff41c6 Mon Sep 17 00:00:00 2001 From: qyh111 Date: Sat, 13 Dec 2025 05:15:16 -0800 Subject: [PATCH 2/2] add editable_wheel --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a3ec3610..e2a4b77f 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,12 @@ def enable_sparse() -> bool: def is_editable_mode() -> bool: commands = [arg.lower() for arg in sys.argv] - return "develop" in commands or "--editable" in commands or "-e" in commands + return ( + "develop" in commands + or "--editable" in commands + or "-e" in commands + or "editable_wheel" in commands + ) class CMakeExtension(Extension):