File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ def _find_library_dirs_ldconfig() -> list[str]:
163
163
args : list [str ]
164
164
env : dict [str , str ]
165
165
expr : str
166
- if sys .platform .startswith ("linux" ) or sys . platform . startswith ( "gnu" ):
166
+ if sys .platform .startswith (( "linux" , "gnu" ) ):
167
167
if struct .calcsize ("l" ) == 4 :
168
168
machine = os .uname ()[4 ] + "-32"
169
169
else :
@@ -623,11 +623,7 @@ def build_extensions(self) -> None:
623
623
624
624
for extension in self .extensions :
625
625
extension .extra_compile_args = ["-Wno-nullability-completeness" ]
626
- elif (
627
- sys .platform .startswith ("linux" )
628
- or sys .platform .startswith ("gnu" )
629
- or sys .platform .startswith ("freebsd" )
630
- ):
626
+ elif sys .platform .startswith (("linux" , "gnu" , "freebsd" )):
631
627
for dirname in _find_library_dirs_ldconfig ():
632
628
_add_directory (library_dirs , dirname )
633
629
if sys .platform .startswith ("linux" ) and os .environ .get ("ANDROID_ROOT" ):
You can’t perform that action at this time.
0 commit comments