first commit
This commit is contained in:
commit
9005e49d82
3071 changed files with 1941927 additions and 0 deletions
21
e-Paper/RaspberryPi_JetsonNano/python/setup.py
Normal file
21
e-Paper/RaspberryPi_JetsonNano/python/setup.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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,
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue