verilog_data-2 / najaeda_naja /ci /check_wheel_import.py
SAIFIINDUSTRIES's picture
Add Batch 1 with 10 repos
8dc19e4 verified
Raw
History Blame
646 Bytes
# SPDX-FileCopyrightText: 2025 The Naja authors
# <https://github.com/najaeda/naja/blob/main/AUTHORS>
#
# SPDX-License-Identifier: Apache-2.0
import sys
import najaeda
p = najaeda.__file__
print("Imported najaeda from:", p)
if "site-packages" not in p.replace("\\", "/"):
raise RuntimeError(
"najaeda was NOT imported from the installed wheel "
f"(loaded from {p})"
)
package_version = getattr(najaeda, "__version__", None)
if package_version is None and hasattr(najaeda, "version"):
package_version = najaeda.version()
print("najaeda version:", package_version or "unknown")
print("Basic wheel import check: OK")