remove pywrap prefix for pybind11 generated modules

This commit is contained in:
Laurent Perron
2023-07-03 12:46:51 +02:00
parent 79b2274658
commit 32175c9c3b
26 changed files with 242 additions and 673 deletions

View File

@@ -16,11 +16,12 @@
load("@pip_deps//:requirements.bzl", "requirement")
PYTHON_DEPS = [
"//ortools/init/python:init",
"//ortools/linear_solver/python:model_builder",
"//ortools/sat/python:cp_model",
"//ortools/sat/colab:visualization",
"//ortools/scheduling:rcpsp_py_proto",
"//ortools/scheduling/python:pywrap_rcpsp",
"//ortools/scheduling/python:rcpsp",
requirement("absl-py"),
requirement("numpy"),
requirement("pandas"),

View File

@@ -30,7 +30,7 @@ from absl import flags
from google.protobuf import text_format
from ortools.sat.python import cp_model
from ortools.scheduling import rcpsp_pb2
from ortools.scheduling.python import pywrap_rcpsp
from ortools.scheduling.python import rcpsp
_INPUT = flags.DEFINE_string("input", "", "Input file to parse and solve.")
_OUTPUT_PROTO = flags.DEFINE_string(
@@ -741,7 +741,7 @@ def ComputePreemptiveLowerBound(problem, after, lower_bound):
def main(_):
rcpsp_parser = pywrap_rcpsp.RcpspParser()
rcpsp_parser = rcpsp.RcpspParser()
rcpsp_parser.parse_file(_INPUT.value)
problem = rcpsp_parser.problem()