Fixed own logical error

when missing msgpack package is being appended to install_requires
  list instead of the available one.
This commit is contained in:
Dmitri Bogomolov 2017-08-29 13:50:49 +03:00
parent 022e0ce593
commit fc960cbf86
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -230,9 +230,9 @@ if __name__ == "__main__":
]
# this will silently accept alternative providers of msgpack
# if they are already installed
if "msgpack" in detectPrereqs():
if "msgpack" in detectPrereqs(False):
installRequires.append("msgpack-python")
elif "umsgpack" in detectPrereqs():
elif "umsgpack" in detectPrereqs(False):
installRequires.append("umsgpack")
else:
packages += ['pybitmessage.fallback', 'pybitmessage.fallback.umsgpack']