Corentin Le Molgat
b4b226801b
update include guards
2025-11-05 11:54:02 +01:00
Mizux Seiha
4f381f6d07
backport from main:
...
* bump abseil to 20250814
* bump protobuf to v32.0
* cmake: add ccache auto support
* backport flatzinc, math_opt and sat update
2025-09-16 16:25:04 +02:00
Guillaume Chatelet
5ffb66cdce
Fix bazel load rules
2025-07-24 10:10:29 +02:00
Corentin Le Molgat
a7f49a2585
backport from main
...
* rename swig files .i in .swig
* update constraint_solver and routing
* backport math_opt changes
* move dynamic loading to ortools/third_party_solvers
2025-07-23 23:12:34 +02:00
Corentin Le Molgat
a66a6daac7
Bump Copyright to 2025
2025-01-10 11:35:44 +01:00
Corentin Le Molgat
5252c00007
cmake cleanup
2024-12-16 15:45:02 +01:00
Corentin Le Molgat
d5c3764d77
cmake: Fix macOS 15 python build
2024-12-16 15:45:02 +01:00
Laurent Perron
4cbd27dae9
sync with main
2024-05-30 10:52:42 +02:00
Laurent Perron
91fe48478d
reformat
2024-05-30 10:51:55 +02: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
Corentin Le Molgat
15ec692a45
init: Fix include header guard
2023-12-20 17:31:55 +01:00
Corentin Le Molgat
f17d044065
Fix python3.8 stubgen doc parsing
2023-11-27 16:26:15 +01: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
1b9c7bf0b2
swith python init to pybind11
2023-07-02 08:12:09 +02:00
Laurent Perron
a743431365
start reformating with black
2023-06-27 14:21:34 +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
Laurent Perron
1ecebe64d3
add stderrthreshold to init
2023-02-17 13:13:13 +01: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
Laurent Perron
e9f9404923
Remove logging code; use absl one
2023-01-31 20:46:43 +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
b8d8e44fd5
init: fixup
2022-10-14 18:04:32 +02:00
Mizux Seiha
02e6ba83fe
add version_test.py.in
2022-09-30 14:24:43 +02:00
Corentin Le Molgat
2fea50c07f
export from google3
2022-09-28 10:21:55 +02:00
Laurent Perron
f39efd5ac8
fix, reindent, add tests
2022-09-27 18:00:48 +02: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
Corentin Le Molgat
7a401969c0
move examples/test/*.py to ortools/<component>/python
2022-09-22 13:54:16 +02:00
Corentin Le Molgat
1af55b2be3
Add license boilerplate
2022-06-21 11:25:29 +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
Laurent Perron
758ead91e9
Add version info on python, java, .NET; add patch info on C++, #2861
2021-10-22 10:08:28 +02:00
Laurent Perron
d17db3ec44
fix comments
2021-09-20 15:24:04 +02: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
Laurent Perron
8096f5bc0b
add more flags to CppFlags in init.h; export to python, java, .NET
2021-04-01 10:15:26 +02:00
Mizux Seiha
aa8745b547
python: Rework init support
2021-03-26 15:15:23 +01:00
Laurent Perron
6f73a7f529
add Shutdown method to non C++ init class
2021-03-24 21:15:55 +01:00
Laurent Perron
6a562b0c29
introduce struct to hold flags in cpp init code; rename classes
2021-03-24 09:54:39 +01:00
Mizux Seiha
724068a88a
cmake: Fix python init
2021-03-22 09:31:04 +01:00
Mizux Seiha
4a025e23c0
cmake: Add init
2021-03-21 16:19:12 +01:00
Laurent Perron
3c1932b21a
export init.h to all languages
2021-03-19 18:55:20 +01:00