Changed setup.py for RPI.GPIO

RPi.GPIO 0.7.0 is causing an error if installed under bullseye and python 3.9
-> 0.7.1a4 solves the issue for now.
-> will be changed as soon as new RPi.GPIO release is comming out
This commit is contained in:
avollkopf 2021-11-24 22:10:28 +01:00
parent 3724f76faa
commit b2e61bee8e
3 changed files with 2 additions and 4 deletions

View file

@ -1 +1 @@
__version__ = "4.0.0.51" __version__ = "4.0.0.52"

View file

@ -15,7 +15,6 @@ from typing import KeysView
from cbpi.api.config import ConfigType from cbpi.api.config import ConfigType
from cbpi.api.base import CBPiBase from cbpi.api.base import CBPiBase
import numpy as np import numpy as np
#import scipy.optimize
import warnings import warnings

View file

@ -37,10 +37,9 @@ setup(name='cbpi',
'asyncio-mqtt', 'asyncio-mqtt',
'psutil==5.8.0', 'psutil==5.8.0',
'numpy==1.20.3', 'numpy==1.20.3',
'scipy',
'cbpi4ui', 'cbpi4ui',
'importlib_metadata'] + ( 'importlib_metadata'] + (
['RPi.GPIO'] if platform.uname()[1] == "raspberrypi" else [] ), ['RPi.GPIO==0.7.1a4'] if platform.uname()[1] == "raspberrypi" else [] ),
dependency_links=[ dependency_links=[
'https://testpypi.python.org/pypi', 'https://testpypi.python.org/pypi',