INNER CODE UNIT · Python
_countdown
open-quantum-safe/liboqs-python · oqs/oqs.py:164
def _countdown(seconds: int) -> None:
while seconds > 0:
logger.info("Installing in %s seconds...", seconds)
stdout.flush()
seconds -= 1
time.sleep(1)
def _install_liboqs(
target_directory: Path,
oqs_version_to_install: Union[str, None] = None,
) -> None:
"""Install liboqs version oqs_version (if None, installs latest at HEAD) in the target_directory.""" # noqa: E501
# Set explicit to `None` to install the lastest `liboqs` code.
if oqs_version_to_install is None:
pass
elif "dev" in oqs_version_to_install: