Commit Graph

43 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
Mizux Seiha
baaf1ca82a cmake: Fix dotnet build
* fix cmake/dotnet.cmake
* fix <cmp>/dotnet/CMakeLists.txt
* fix examples/tests/CMakeLists.txt
2022-09-23 13:15:36 +02:00
Mizux Seiha
224ebed399 move examples/test/*.cs to ortools/<component>/csharp 2022-09-23 13:15:36 +02:00
Mizux Seiha
b65c86da8b cmake: Fix java
* fix cmake/java.cmake
* fix <cmp>/java/CMakeLists.txt
* fix examples/tests/CMakeLists.txt
2022-09-23 13:15:36 +02:00
Mizux Seiha
ddbbd50228 move examples/test/*.java to ortools/<component>/java 2022-09-22 22:40:10 +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
Mizux Seiha
e956acee92 cmake: Fix C++17 Unix / C++20 MSVC management 2022-09-20 22:33:30 +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
Corentin Le Molgat
0466c9f6bf python: remove __init__.py
now you'll need to always use a wheel package
avoid some issue when trying to run venv from root dir
e.g. `./build/python/venv/bin/python -c "from ortools.pdlp import solve_log_pb2"`
2022-02-28 08:52:31 +01:00
Laurent Perron
8644ffa1ea reformat 2022-01-21 12:00:35 +01:00
Laurent Perron
58659bd77e [CP-SAT] fix memory leak in C# 2022-01-20 13:30:34 +01:00
Laurent Perron
560826496b BUILD -> BUILD.bazel 2021-12-06 14:36:13 +01:00
Corentin Le Molgat
5f567735d7 cmake: Fix dotnet.cmake and path 2021-12-03 14:20:19 +01:00
Mizux Seiha
72ebd8b748 cmake: rework .Net support 2021-12-03 14:20:19 +01:00
Mizux Seiha
976f227b67 cmake: rework java 2021-12-03 14:20:19 +01:00
Mizux Seiha
655eec5260 cmake: rework python 2021-12-03 14:20:19 +01:00
Laurent Perron
cd739ce7fd [INIT] move VersionString code to base/version 2021-11-28 12:57:35 +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
Mizux Seiha
c68ae78b1d cmake: Fix init configure on FreeBSD 2021-10-05 12:37:27 +02:00
Laurent Perron
d17db3ec44 fix comments 2021-09-20 15:24:04 +02:00
Corentin Le Molgat
452d2654f1 Fix license in java/init.i 2021-09-13 13:10:58 +02:00
Corentin Le Molgat
c5eca97663 Fix init/init.h 2021-09-13 13:10:57 +02:00
Corentin Le Molgat
b83302a60e bazel: Add ortools/init/init.h 2021-09-10 18:28:34 +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
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
8096f5bc0b add more flags to CppFlags in init.h; export to python, java, .NET 2021-04-01 10:15:26 +02:00
Mizux Seiha
2b03fa3515 dotnet: Fix CMake build 2021-03-26 17:56:23 +01: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
Laurent Perron
78b814ddcb expand init API 2021-03-23 19:46:34 +01:00
Laurent Perron
18ef191443 missing __init__ file 2021-03-23 19:29:06 +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
Laurent Perron
814a32fa50 new init class to be called from non C++ languages 2021-03-19 16:26:31 +01:00