Commit Graph

21 Commits

Author SHA1 Message Date
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