Skip to content

Commit

Permalink
Don't install pysha3 on Python 3.6+ (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 authored Mar 6, 2020
1 parent f10f0e4 commit f10d71e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions merkletools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import hashlib
import binascii
try:
import sha3
except:
from warnings import warn
warn("sha3 is not working!")
import sys


if sys.version_info < (3, 6):
try:
import sha3
except:
from warnings import warn
warn("sha3 is not working!")


class MerkleTools(object):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

here = os.path.abspath(os.path.dirname(__file__))
install_requires = [
"pysha3>=1.0b1"
"pysha3>=1.0b1; python_version<\"3.6\""
]

setup(
Expand Down

0 comments on commit f10d71e

Please sign in to comment.