Merge pull request #149 from missionfloyd/missionfloyd-install_requires
Add dependencies to setup.py
This commit is contained in:
commit
af9694c602
1 changed files with 10 additions and 1 deletions
|
|
@ -1,10 +1,19 @@
|
|||
import sys
|
||||
import sys, os
|
||||
from setuptools import setup
|
||||
|
||||
dependencies = ['Pillow', 'numpy']
|
||||
|
||||
if os.path.exists('/sys/bus/platform/drivers/gpiomem-bcm2835'):
|
||||
dependencies += ['RPi.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