Skip to content

Commit

Permalink
Added check before installation
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Jan 30, 2024
1 parent 7af180c commit ddb99a1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sdk_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@

from utils import install_package


try:
install_package('mmh3')
except CalledProcessError:
install_package('pymmh3')
from mmh3 import hash, hash128
except ImportError:
try:
from pymmh3 import hash, hash128
except ImportError:
try:
install_package('mmh3')
except CalledProcessError:
install_package('pymmh3')

try:
from mmh3 import hash, hash128
Expand Down

0 comments on commit ddb99a1

Please sign in to comment.