This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from todofixthis/release/1.0.6
Release/1.0.6
- Loading branch information
Showing
4 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# coding=utf-8 | ||
from __future__ import absolute_import, division, print_function, \ | ||
unicode_literals | ||
|
||
|
||
def is_installed(): | ||
# type: () -> bool | ||
""" | ||
Returns whether the C extension is installed correctly. | ||
""" | ||
try: | ||
# noinspection PyUnresolvedReferences | ||
from ccurl import Curl as CCurl | ||
except ImportError: | ||
return False | ||
else: | ||
# noinspection PyUnresolvedReferences | ||
from iota.crypto import Curl | ||
return issubclass(Curl, CCurl) | ||
|
||
|
||
def check_installation(): | ||
""" | ||
Outputs a message indicating whether the C extension is installed | ||
correctly. | ||
""" | ||
print( | ||
'😸 CCurl is installed correctly!' | ||
if is_installed() | ||
else '😿 CCurl is NOT installed correctly!' | ||
) | ||
print('For support, visit the #iota-libs-pyota channel on the IOTA Slack.') | ||
print('https://slack.iota.org/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters