Commit Graph

172 Commits

Author SHA1 Message Date
Corentin Le Molgat
a7cd09b680 google3: sync 2022-05-04 08:26:48 +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
Laurent Perron
8e6dbcabcd missing stl 2022-04-02 19:42:45 +02:00
Corentin Le Molgat
fca3456c45 Sync from Google 2022-03-03 14:09:10 +01:00
Corentin Le Molgat
35ef175cac Sync from google 2022-03-02 22:10:54 +01: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
Corentin Le Molgat
4defaa23ed Export strong_int.h 2022-01-31 18:44:25 +01:00
Corentin Le Molgat
bbf434fb3f sync algorithms 2022-01-27 16:32:53 +01:00
Laurent Perron
49e47a336d mostly reformat 2022-01-24 12:46:54 +01:00
Corentin Le Molgat
a40295d79c Sync from google 2022-01-21 17:51:38 +01:00
Laurent Perron
560826496b BUILD -> BUILD.bazel 2021-12-06 14:36:13 +01:00
Laurent Perron
18d001912d remove ortools/base/random.h|cc; adapt code everywhere; increase robustness of glop preprocessor 2021-12-06 14:03:19 +01:00
Corentin Le Molgat
e41b99a930 remove deprecated .csprog 2021-12-03 17:22:45 +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
Mizux Seiha
d15847ec36 Bump csproj to 9.2 2021-11-30 18:13:26 +01:00
Laurent Perron
699022953d fix scip build for bazel; re-enable hungarian_test for bazel 2021-11-29 14:32:48 +01:00
Corentin Le Molgat
dbac279fab algorithms: use std::stable_sort 2021-09-24 17:58:26 +02:00
Laurent Perron
1941d1a5af update csproj and generator to use netcoreapp3.1 2021-09-21 09:55:14 +02:00
Laurent Perron
83007b4c00 bump version to 9.1; regenerate doc 2021-09-20 15:57:27 +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
1c512fd12d change a bit the export code: propagate effect 2021-09-07 11:53:01 +02:00
Corentin Le Molgat
347fa61799 Update comment in algorithms 2021-09-03 15:29:33 +02:00
Corentin Le Molgat
e5deec180c Fix indent 2021-08-23 14:46:12 +02:00
Corentin Le Molgat
013bb65405 Fix dotnet samples 2021-07-26 12:47:10 +02:00
Corentin Le Molgat
8e8e4a6c23 bazel: Bump to googletest 1.10
* Fix googletest compilation on windows
2021-06-18 14:11:07 +02:00
Mizux Seiha
6ae19c9b5b Bump version: 8.2 -> 9.0 2021-04-27 10:56:39 +02:00
Laurent Perron
b588424def Merge pull request #2506 from ruqzuq/knapsackDivideConquerSolver
add KnapsackDivideAndConquerSolver
2021-04-16 12:44:29 +02:00
Corentin Le Molgat
7531dd9625 python: Add shebang to programs 2021-04-16 00:23:35 +02:00
ruqzuq
c9fb8bb6e8 add knapsack solver 2021-04-15 12:56:01 +02:00
Laurent Perron
5d84e4e72f fix #2493 2021-04-14 09:00:33 +02:00
Laurent Perron
049431404f reindent 2021-04-11 11:29:06 +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
Corentin Le Molgat
a40143cdd2 cpp: Migrate int64 to int64_t 2021-04-01 20:20:43 +02:00
Laurent Perron
baa3678832 remove duplicate swig include 2021-03-24 09:53:51 +01:00
Laurent Perron
76f6c736ed int64 -> int64_t 2021-03-08 14:00:36 +01:00
Laurent Perron
bad5c2032b int64 -> int64_t 2021-03-04 18:26:01 +01:00
Laurent Perron
111f43b139 add deterministic time limit to the graph symmetry finder; improve support for scheduling constraints in regular LNS for CP-SAT; improve symmetry detection for CP-SAT 2021-02-03 15:39:48 +01:00
Mizux Seiha
817914d94a Bump version 8.1 -> 8.2 2021-01-26 11:34:47 +01:00
Mizux Seiha
5a5e524abf Fix doxygen code block (#2303) 2020-12-29 22:26:46 +01:00
Corentin Le Molgat
7cd948e9ea Export indent from Google 2020-12-22 10:43:28 +01:00
Corentin Le Molgat
e166793bd7 add missing strong vector dependency 2020-12-21 16:24:32 +01:00
Corentin Le Molgat
c9caf3d914 bazel: Update sample build 2020-12-21 16:24:32 +01:00
Corentin Le Molgat
a5b5c79f9f Sync g3 to gh 2020-12-11 17:50:03 +01:00
Laurent Perron
bbd45259ef Merge branch 'master' of github.com:google/or-tools 2020-11-19 00:17:50 +01:00
Laurent Perron
d5c7c48e79 int_type_indexed_vector -> strong_vector; polish cp-sat probing workers 2020-11-19 00:17:26 +01:00
Corentin Le Molgat
4cd85e08c4 Export Google update 2020-11-18 16:11:32 +01:00