mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-10-25 18:40:17 -04:00
Load module compilation status from buildinfo if available
This commit is contained in:
parent
5b04a88026
commit
3543dc9802
1 changed files with 4 additions and 2 deletions
|
|
@ -50,8 +50,10 @@ modules = py_modules+pyc_modules+so_modules+pyd_modules
|
|||
__all__ = list(set([os.path.basename(f).split(".")[0] for f in modules if not os.path.basename(f).split(".")[0] == "__init__"]))
|
||||
|
||||
import importlib.util
|
||||
if importlib.util.find_spec("cython"): import cython; compiled = cython.compiled
|
||||
else: compiled = False
|
||||
try: from ._buildinfo import compiled
|
||||
except ImportError:
|
||||
if importlib.util.find_spec("cython"): import cython; compiled = cython.compiled
|
||||
else: compiled = False
|
||||
|
||||
LOG_NONE = -1
|
||||
LOG_CRITICAL = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue