Commit Graph

67 Commits

Author SHA1 Message Date
Corentin Le Molgat
05e3190929 bazel: rename com_google_absl to abseil-cpp 2025-03-24 18:21:42 +01:00
Corentin Le Molgat
92e4b2e78b Revert "remove dead cmake code"
This reverts commit 14005fea48.
2025-03-07 08:00:28 +01:00
Laurent Perron
14005fea48 remove dead cmake code 2025-03-05 14:03:59 +01:00
Mizux Seiha
8ad77acc62 cmake: build algorithms/python tests 2025-03-04 17:43:32 +01:00
Laurent Perron
4efd54f5f0 move set_cover code in its own directory 2025-02-17 12:52:36 +01:00
Corentin Le Molgat
c34026b101 Bump copyright to 2025
note: done using
```sh
git grep -l "2010-2024 Google" | xargs sed -i 's/2010-2024 Google/2010-2025 Google/'
```
2025-01-10 11:33:35 +01:00
Laurent Perron
3e34fb7559 update code and tests 2024-12-19 15:26:49 +01:00
Corentin Le Molgat
1da3f348d9 cmake: Fix macos 15 python build 2024-12-18 09:08:15 +01:00
Laurent Perron
152b18dc44 polish code 2024-12-06 15:19:09 +01:00
Laurent Perron
927f5c90c9 more spans 2024-12-02 17:17:58 +01:00
Laurent Perron
6fc2a45d37 spans 2024-11-28 15:32:45 +01:00
Laurent Perron
c87e13a648 more work on set cover 2024-11-17 14:17:24 +01:00
Laurent Perron
4a22afd86f bump set cover code 2024-11-07 18:18:12 -08:00
Laurent Perron
7053436950 switch to Bazel modules; slight improvements in CP-SAT 2D packing propagators 2024-11-03 11:07:22 +01:00
Corentin Le Molgat
6feb7c8575 algorithms: export from google3 2024-09-25 17:17:15 +02:00
Corentin Le Molgat
21d767b3b5 algorithms: Add python.set_cover 2024-09-06 07:54:46 +02:00
Laurent Perron
622483b682 mostly reformat 2024-04-08 11:34:45 +02:00
Corentin Le Molgat
4e52b0abe3 python: fix indent 2024-04-04 18:00:32 +02:00
Laurent Perron
9a1fd0f602 reindent 2024-04-02 16:15:21 +02:00
Laurent Perron
d9b2908bfb reformat 2024-03-26 12:33:42 +01:00
Corentin Le Molgat
b9164ea1d8 fix formating 2024-03-25 18:23:38 +01:00
Laurent Perron
8f2f56e2e8 mostly reindent 2024-03-21 14:02:18 +01:00
Corentin Le Molgat
3d08056540 sync from google3 2024-03-15 16:38:57 +01:00
Laurent Perron
f6518fcd2b python black reformat 2024-03-14 15:05:07 +01:00
Corentin Le Molgat
cac0b042e9 algorithms: export from google3 2024-01-29 15:10:26 +01:00
Corentin Le Molgat
75f197409a cmake: rework add_python_test()
* Add FILE_NAME option
* add optional COMPONENT_NAME option
  note: needed if test.py is not in a ortools/<component>/python/ dir
2024-01-15 13:33:49 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Laurent Perron
8dbcd49e1b reformat 2023-07-24 13:20:45 -07:00
Laurent Perron
38401203d2 Fix test with USE_SCIP=OFF 2023-07-21 09:20:17 -07:00
Laurent Perron
346642b871 remove the pywrap prefix from pybind11 modules; add _pybind to the cmake target of the same modules 2023-07-03 14:30:27 +02:00
Laurent Perron
32175c9c3b remove pywrap prefix for pybind11 generated modules 2023-07-03 12:46:51 +02:00
Laurent Perron
ffefb698e5 add pybind11 doc to knapsack_solver 2023-07-02 08:11:12 +02:00
Laurent Perron
91c1adc3e1 use snake case in knapsack_solver 2023-07-01 06:08:49 +02:00
Laurent Perron
c3fdb12908 Switch algorithms and scheduling python libraries from swig to pybind11; switch protobuf support from forced serialization to pybind11_protobuf -- with patch; [CP-SAT] rewrite cut management; reformat samples with black 2023-06-30 22:49:35 +02:00
Mizux Seiha
53c1e40969 swig: Fix define definition
need to set ABSL_MUST_USE_RESULT to empty string so '=' is mandatory
2023-05-30 14:49:13 +02:00
Corentin Le Molgat
192e690204 cmake: cleanup 2023-05-24 15:39:37 +02:00
Corentin Le Molgat
7665b677e5 Update CMakeLists.txt 2023-04-05 10:36:55 +02:00
Corentin Le Molgat
41d60ad520 cmake: Fix SWIG build
Still need to define ABSL_MUST_USE_RESULT= even with swig 4.1.1
2023-02-06 08:47:46 +01:00
Corentin Le Molgat
9054f13f95 cmake: remove ABSL_MUST_USE_RESULT for swig
should be fixed with absl upstream + swig 4.1 now support attibute
2023-02-06 08:47:46 +01:00
Corentin Le Molgat
ecd2afe4bb swig: Fix python build when using swig 4.1.0 2022-11-07 15:31:47 +01:00
Corentin Le Molgat
899e30d88b cmake: Fix python build
* fix cmake/python.cmake
* fix <cmp>/python/CMakeLists.txt
* fix examples/tests/CMakeLists.txt
2022-09-22 22:39:55 +02:00
Laurent Perron
ffefef9136 new dynamic partition class 2022-06-29 17:03:49 +02:00
Corentin Le Molgat
045a5d93b7 Sync google3 github 2022-06-17 14:23:23 +02:00
Corentin Le Molgat
c7120439d4 Bump license date 2022-06-17 14:23:23 +02:00
StefanBruens
9021ffbb95 Build Python modules as CMake MODULEs (#3259)
Python since 3.8 no longer links to the interpreter library, so
symbols like `PyExc_AttributeError` will be undefined at link time.

This causes build failures when shared libraries are linked with
`-Wl,--no-undefined`. Use `TYPE MODULE` for python extension modules,
which allows to specify distinct flags via CMAKE_MODULE_LINKER_FLAGS
vs CMAKE_SHARED_LINKER_FLAGS. (The same is already used by
`pybind11_add_module(... MODULE ...)`).

Fixes #3258.
2022-04-28 15:50:56 +02:00
Mizux Seiha
655eec5260 cmake: rework python 2021-12-03 14:20:19 +01:00
Mizux Seiha
c7441c346c cmake: Migrate to Python3 and use Development.Module
note: Development.Module is use to look for python header only
since library is not available on manylinux.
see: https://gitlab.kitware.com/cmake/cmake/-/issues/20425

note2: Development.Module has been introduced in CMake 3.18
ref: https://cmake.org/cmake/help/latest/module/FindPython3.html
2021-09-08 16:08:52 +02:00
Corentin Le Molgat
ef4405f4ee swig: Remove unneeded int64 typedef 2021-04-02 16:08:32 +02:00
Mizux Seiha
8bb54b04ef Bump Copyright to 2021
FYI:
find ortools \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/\(Copyright 2010\)-2018/\1-2021/g'
2021-04-01 21:00:53 +02:00
Laurent Perron
baa3678832 remove duplicate swig include 2021-03-24 09:53:51 +01:00