diff setup.py @ 46441:cabc5e9366c5

rust: lower compile error on non-linux platforms to a warning As discussed on D9671#146704 this lowers the error to a warning. Differential Revision: https://phab.mercurial-scm.org/D9852
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 22 Jan 2021 11:10:39 +0100
parents 2ef575c62f10
children 16c18d5e5dc8
line wrap: on
line diff
--- a/setup.py	Mon Jan 18 10:24:20 2021 +0100
+++ b/setup.py	Fri Jan 22 11:10:39 2021 +0100
@@ -609,6 +609,12 @@
         # and its build is not explictely disabled (for external build
         # as Linux distributions would do)
         if self.distribution.rust and self.rust:
+            if not sys.platform.startswith('linux'):
+                self.warn(
+                    "rust extensions have only been tested on Linux "
+                    "and may not behave correctly on other platforms"
+                )
+
             for rustext in ruststandalones:
                 rustext.build('' if self.inplace else self.build_lib)