X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/2b037bda3ddbcfea41f2f4d218a1b05dfa044697..refs/heads/use-pi5-pio-neopixel:/setup.py?ds=inline diff --git a/setup.py b/setup.py index 0effb9a..5ec4231 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,6 @@ with io.open(os.path.join(here, "README.rst"), encoding="utf-8") as f: long_description = "\n" + f.read() board_reqs = [] -platform_reqs = [] if os.path.exists("/proc/device-tree/compatible"): with open("/proc/device-tree/compatible", "rb") as f: compat = f.read() @@ -35,12 +34,14 @@ if os.path.exists("/proc/device-tree/compatible"): or b"brcm,bcm2838" in compat or b"brcm,bcm2711" in compat ): - board_reqs = ["RPi.GPIO", "rpi_ws281x>=4.0.0", "sysv_ipc>=1.1.0"] + board_reqs = ["RPi.GPIO", "rpi_ws281x>=4.0.0"] # Pi 5 if b"brcm,bcm2712" in compat: - board_reqs = ["rpi_ws281x>=4.0.0", "rpi-lgpio", "sysv_ipc>=1.1.0"] - if b"amlogic,a311d" in compat: - board_reqs = ["sysv_ipc>=1.1.0"] + board_reqs = [ + "rpi_ws281x>=4.0.0", + "rpi-lgpio", + "Adafruit-Blinka-Raspberry-Pi5-Neopixel", + ] if ( b"ti,am335x" in compat ): # BeagleBone Black, Green, PocketBeagle, BeagleBone AI, etc. @@ -96,8 +97,8 @@ setup( "Adafruit-PureIO>=1.1.7", "binho-host-adapter>=0.1.6", "pyftdi>=0.40.0", - "numpy>=1.21.5", "adafruit-circuitpython-typing", + "sysv_ipc>=1.1.0;sys_platform=='linux' and platform_machine!='mips'", ] + board_reqs, license="MIT",