Skip to content

Commit

Permalink
More user friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Mar 30, 2024
1 parent b430663 commit ae37244
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions oqs/oqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,25 @@
import platform # to learn the OS we're on
import sys
import tempfile # to install liboqs on demand
import time
import warnings

# liboqs-python tries to automatically install this liboqs version in case no
# other version is found
OQS_VERSION = "0.10.0"

# Expected return value from native OQS functions
OQS_SUCCESS = 0
OQS_ERROR = -1

OQS_VERSION = "0.10.0"

def _countdown(seconds):
while seconds > 0:
print(seconds, end=" ")
sys.stdout.flush()
seconds -= 1
time.sleep(1)
print()


def _load_shared_obj(name, additional_searching_paths=None):
Expand Down Expand Up @@ -75,7 +87,7 @@ def _install_liboqs(directory, oqs_version):
+ " && cmake --build liboqs/build --parallel 4 && cmake --build liboqs/build --target install"
)
print("liboqs not found, installing it in " + directory)
input("Press ENTER to continue...")
_countdown(5)
os.system(oqs_install_str)
print("Done installing liboqs")

Expand Down

0 comments on commit ae37244

Please sign in to comment.