e-paper-display/bcm2835-1.71/e-Paper/RaspberryPi_JetsonNano/python/setup.py

22 lines
547 B
Python

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,
)