setup.py
changeset 46369 cabc5e9366c5
parent 46315 2ef575c62f10
child 46414 16c18d5e5dc8
equal deleted inserted replaced
46368:bb3a5c0df06b 46369:cabc5e9366c5
   607 
   607 
   608         # Build Rust standalon extensions if it'll be used
   608         # Build Rust standalon extensions if it'll be used
   609         # and its build is not explictely disabled (for external build
   609         # and its build is not explictely disabled (for external build
   610         # as Linux distributions would do)
   610         # as Linux distributions would do)
   611         if self.distribution.rust and self.rust:
   611         if self.distribution.rust and self.rust:
       
   612             if not sys.platform.startswith('linux'):
       
   613                 self.warn(
       
   614                     "rust extensions have only been tested on Linux "
       
   615                     "and may not behave correctly on other platforms"
       
   616                 )
       
   617 
   612             for rustext in ruststandalones:
   618             for rustext in ruststandalones:
   613                 rustext.build('' if self.inplace else self.build_lib)
   619                 rustext.build('' if self.inplace else self.build_lib)
   614 
   620 
   615         return build_ext.build_extensions(self)
   621         return build_ext.build_extensions(self)
   616 
   622