mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
Update setup.py
RPi.GPIO installation only if system is based on raspberrypi
This commit is contained in:
parent
45c084360f
commit
a81a365113
1 changed files with 4 additions and 3 deletions
7
setup.py
7
setup.py
|
@ -1,5 +1,6 @@
|
|||
from setuptools import setup, find_packages
|
||||
from cbpi import __version__
|
||||
import platform
|
||||
|
||||
setup(name='cbpi',
|
||||
version=__version__,
|
||||
|
@ -37,9 +38,9 @@ setup(name='cbpi',
|
|||
'psutil==5.8.0',
|
||||
'numpy==1.20.3',
|
||||
'scipy',
|
||||
'cbpi4ui',
|
||||
'RPi.GPIO; sys_platform == "linux"'
|
||||
],
|
||||
'cbpi4ui'] + (
|
||||
['RPi.GPIO'] if platform.uname()[1] == "raspberrypi" else [] ),
|
||||
|
||||
dependency_links=[
|
||||
'https://testpypi.python.org/pypi',
|
||||
|
||||
|
|
Loading…
Reference in a new issue