Skip to content

Commit

Permalink
Merge pull request #860 from makermelissa/main
Browse files Browse the repository at this point in the history
Use platform.system instead of sys.platform for setup.py
  • Loading branch information
makermelissa authored Jun 20, 2024
2 parents ac2ce32 + dcf97c0 commit 393bcd7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import io
import os
import sys
import platform

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

if sys.platform == "linux" and platform.machine() != "mips":
if platform.system() == "Linux" and platform.machine() != "mips":
platform_reqs = ["sysv_ipc>=1.1.0"]

setup(
Expand Down

0 comments on commit 393bcd7

Please sign in to comment.