Skip to content

Commit dcf97c0

Browse files
committed
Use platform.system instead of sys.platform for setup.py
1 parent ac2ce32 commit dcf97c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import io
1212
import os
13-
import sys
1413
import platform
1514

1615
from setuptools import setup, find_packages
@@ -46,7 +45,7 @@
4645
): # BeagleBone Black, Green, PocketBeagle, BeagleBone AI, etc.
4746
board_reqs = ["Adafruit_BBIO"]
4847

49-
if sys.platform == "linux" and platform.machine() != "mips":
48+
if platform.system() == "Linux" and platform.machine() != "mips":
5049
platform_reqs = ["sysv_ipc>=1.1.0"]
5150

5251
setup(

0 commit comments

Comments
 (0)