Added package fallback and suppressed pylint relative-import warning
This commit is contained in:
parent
0d7b3a3823
commit
38f36d7860
8
setup.py
8
setup.py
|
@ -64,12 +64,13 @@ if __name__ == "__main__":
|
|||
'pybitmessage',
|
||||
'pybitmessage.bitmessageqt',
|
||||
'pybitmessage.bitmessagecurses',
|
||||
'pybitmessage.fallback',
|
||||
'pybitmessage.messagetypes',
|
||||
'pybitmessage.network',
|
||||
'pybitmessage.plugins',
|
||||
'pybitmessage.pyelliptic',
|
||||
'pybitmessage.socks',
|
||||
'pybitmessage.storage',
|
||||
'pybitmessage.plugins'
|
||||
'pybitmessage.storage'
|
||||
]
|
||||
|
||||
# this will silently accept alternative providers of msgpack
|
||||
|
@ -84,8 +85,7 @@ if __name__ == "__main__":
|
|||
import umsgpack
|
||||
installRequires.append("umsgpack")
|
||||
except ImportError:
|
||||
packages += [
|
||||
'pybitmessage.fallback', 'pybitmessage.fallback.umsgpack']
|
||||
packages += ['pybitmessage.fallback.umsgpack']
|
||||
|
||||
dist = setup(
|
||||
name='pybitmessage',
|
||||
|
|
|
@ -165,7 +165,7 @@ def try_import(module, log_extra=False):
|
|||
def check_ripemd160():
|
||||
"""Check availability of the RIPEMD160 hash function"""
|
||||
try:
|
||||
from fallback import RIPEMD160Hash
|
||||
from fallback import RIPEMD160Hash # pylint: disable=relative-import
|
||||
except ImportError:
|
||||
return False
|
||||
return RIPEMD160Hash is not None
|
||||
|
|
Reference in New Issue
Block a user