add check for modules import
This commit is contained in:
@@ -81,4 +81,12 @@ if __name__ == '__main__':
|
||||
logging.error(wrong_module(ortools_module_file, "ortools"))
|
||||
raise SystemExit
|
||||
|
||||
# Check if python can load the libraries' modules
|
||||
# this is useful when the library architecture is not compatbile with the python executable,
|
||||
# or when the library's dependencies are not available or not compatible.
|
||||
from ortools.constraint_solver import _pywrapcp
|
||||
from ortools.linear_solver import _pywraplp
|
||||
from ortools.algorithms import _pywrapknapsack_solver
|
||||
from ortools.graph import _pywrapgraph
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user