Mercurial > public > mercurial-scm > hg-stable
comparison setup.py @ 52894:0977c6e612fe
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`.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 12 Feb 2025 16:36:51 +0100 |
parents | 6ce3fc909a68 |
children | 53ae4495e5f0 |
comparison
equal
deleted
inserted
replaced
52893:6ce3fc909a68 | 52894:0977c6e612fe |
---|---|
415 "rust extensions have only been tested on Linux " | 415 "rust extensions have only been tested on Linux " |
416 "and may not behave correctly on other platforms" | 416 "and may not behave correctly on other platforms" |
417 ) | 417 ) |
418 | 418 |
419 for rustext in ruststandalones: | 419 for rustext in ruststandalones: |
420 rustext.build('' if self.inplace else self.build_lib) | 420 rustext.build('' if self.editable_mode else self.build_lib) |
421 | 421 |
422 return build_ext.build_extensions(self) | 422 return build_ext.build_extensions(self) |
423 | 423 |
424 def build_extension(self, ext): | 424 def build_extension(self, ext): |
425 if ( | 425 if ( |