e-paper-display/setup.py

22 lines
526 B
Python
Raw Normal View History

2022-10-17 20:30:57 +00:00
import sys, os
from setuptools import setup
dependencies = ['Pillow']
if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'):
dependencies += ['RPi.GPIO', 'spidev']
elif os.path.exists('/sys/bus/platform/drivers/gpio-x3'):
dependencies += ['Hobot.GPIO', 'spidev']
else:
dependencies += ['Jetson.GPIO']
setup(
name='waveshare-epd',
description='Waveshare e-Paper Display',
author='Waveshare',
package_dir={'': 'lib'},
packages=['waveshare_epd'],
install_requires=dependencies,
)