Several improvements to capabilities and build.

- cmake fixed, no longer needs numpy headers.
- models can be loaded from an external interepreter.
This commit is contained in:
Nicholas Lubbers
2020-11-26 12:40:28 -07:00
parent 7c1634e57f
commit 35f2c9bdf2
18 changed files with 369 additions and 89 deletions

View File

@ -0,0 +1,12 @@
import sysconfig, os,ctypes
library = sysconfig.get_config_vars('INSTSONAME')[0]
pylib = ctypes.CDLL(library)
connected = pylib.Py_IsInitialized()
if not connected:
print("FAILURE: This interpreter is not compatible with python-driven mliappy.")
else:
print("SUCCESS: This interpreter is compatible with python-driven MLIAPPY")