Skip to content

Commit 46ba54c

Browse files
authored
Cleanup examples/python folder (#4975)
* Cleanup examples/python folder * Also remove chemical_balance_lp.py
1 parent e95e1d6 commit 46ba54c

File tree

8 files changed

+10
-645
lines changed

8 files changed

+10
-645
lines changed

examples/python/CMakeBazel.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# You can update this file by running:
44
# python3 tools/build/bazel2cmake.py examples/python/BUILD.bazel
55

6-
76
add_python_binary(
87
NAME bzl_py_example_arc_flow_cutting_stock_sat_py3
98
FILE ${CMAKE_CURRENT_SOURCE_DIR}/arc_flow_cutting_stock_sat.py
@@ -182,7 +181,9 @@ add_python_binary(
182181
ortools_cxx_bintest(
183182
NAME bzl_py_example_line_balancing_sat_salbp_20_1_py_test
184183
SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/line_balancing_sat_salbp_20_1_py_test.bintest
185-
ENVIRONMENT BINTEST_line_balancing_sat_py3=$<TARGET_FILE:bzl_py_example_line_balancing_sat_py3> BINTEST_salbp_20_1.alb=${CMAKE_SOURCE_DIR}/examples/python/testdata/salbp_20_1.alb
184+
ENVIRONMENT
185+
BINTEST_line_balancing_sat_py3=$<TARGET_FILE:bzl_py_example_line_balancing_sat_py3>
186+
BINTEST_salbp_20_1.alb=${CMAKE_CURRENT_SOURCE_DIR}/testdata/salbp_20_1.alb
186187
)
187188

188189
add_python_binary(
@@ -287,13 +288,17 @@ ortools_cxx_bintest(
287288
ortools_cxx_bintest(
288289
NAME bzl_py_example_rcpsp_sat_c1510_1_py_test
289290
SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/rcpsp_sat_c1510_1_py_test.bintest
290-
ENVIRONMENT BINTEST_rcpsp_sat_py3=$<TARGET_FILE:bzl_py_example_rcpsp_sat_py3> BINTEST_c1510_1.mm.txt=${CMAKE_SOURCE_DIR}/ortools/scheduling/testdata/c1510_1.mm.txt
291+
ENVIRONMENT
292+
BINTEST_rcpsp_sat_py3=$<TARGET_FILE:bzl_py_example_rcpsp_sat_py3>
293+
BINTEST_c1510_1.mm.txt=${CMAKE_SOURCE_DIR}/ortools/scheduling/testdata/c1510_1.mm.txt
291294
)
292295

293296
ortools_cxx_bintest(
294297
NAME bzl_py_example_rcpsp_sat_j301_1_py_test
295298
SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/rcpsp_sat_j301_1_py_test.bintest
296-
ENVIRONMENT BINTEST_rcpsp_sat_py3=$<TARGET_FILE:bzl_py_example_rcpsp_sat_py3> BINTEST_j301_1.sm=${CMAKE_SOURCE_DIR}/ortools/scheduling/testdata/j301_1.sm
299+
ENVIRONMENT
300+
BINTEST_rcpsp_sat_py3=$<TARGET_FILE:bzl_py_example_rcpsp_sat_py3>
301+
BINTEST_j301_1.sm=${CMAKE_SOURCE_DIR}/ortools/scheduling/testdata/j301_1.sm
297302
)
298303

299304
add_python_binary(
@@ -431,4 +436,4 @@ ortools_cxx_bintest(
431436
NAME bzl_py_example_zebra_sat_py_test
432437
SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/zebra_sat_py_test.bintest
433438
ENVIRONMENT BINTEST_zebra_sat_py3=$<TARGET_FILE:bzl_py_example_zebra_sat_py3>
434-
)
439+
)

examples/python/chemical_balance_lp.py

Lines changed: 0 additions & 95 deletions
This file was deleted.

examples/python/proto_solve.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

examples/python/random_tsp.py

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)