setup: fix `make local PURE=--rust`
authorRapha?l Gom?s <rgomes@octobus.net>
Wed, 12 Feb 2025 16:36:51 +0100
changeset 52882 0977c6e612fe
parent 52881 6ce3fc909a68
child 52883 384ecbc8f8ca
setup: fix `make local PURE=--rust` Turns out we don't ever build "inplace" now that a direct `setup.py` invocation is forbidden. In the context of a `pip install -e .`, we get it in `editable_mode`.
setup.py
--- a/setup.py	Wed Feb 12 16:15:47 2025 +0100
+++ b/setup.py	Wed Feb 12 16:36:51 2025 +0100
@@ -417,7 +417,7 @@
                 )
 
             for rustext in ruststandalones:
-                rustext.build('' if self.inplace else self.build_lib)
+                rustext.build('' if self.editable_mode else self.build_lib)
 
         return build_ext.build_extensions(self)