mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
~Fix for pyrsistent module installation
This commit is contained in:
3
setup.py
3
setup.py
@@ -21,7 +21,7 @@ this_directory = path.abspath(path.dirname(__file__))
|
||||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
VERSION = "2.3.0"
|
||||
VERSION = "2.3.0.1"
|
||||
|
||||
setup(
|
||||
version=VERSION,
|
||||
@@ -57,7 +57,6 @@ setup(
|
||||
'pytz',
|
||||
'PyYAML',
|
||||
'simplejson',
|
||||
'pyrsistent',
|
||||
'requests'
|
||||
],
|
||||
download_url='https://github.com/thingsboard/thingsboard-gateway/archive/%s.tar.gz' % VERSION,
|
||||
|
||||
@@ -27,9 +27,15 @@ from threading import Thread, RLock
|
||||
from yaml import safe_load
|
||||
from simplejson import load, dumps, loads
|
||||
|
||||
from thingsboard_gateway.tb_utility.tb_utility import TBUtility
|
||||
|
||||
try:
|
||||
import pyrsistent
|
||||
except ImportError:
|
||||
TBUtility.install_package("pyrsistent")
|
||||
|
||||
from thingsboard_gateway.gateway.tb_client import TBClient
|
||||
from thingsboard_gateway.gateway.tb_logger import TBLoggerHandler
|
||||
from thingsboard_gateway.tb_utility.tb_utility import TBUtility
|
||||
from thingsboard_gateway.storage.memory_event_storage import MemoryEventStorage
|
||||
from thingsboard_gateway.storage.file_event_storage import FileEventStorage
|
||||
from thingsboard_gateway.gateway.tb_gateway_remote_configurator import RemoteConfigurator
|
||||
|
||||
Reference in New Issue
Block a user