Corentin Le Molgat
045a5d93b7
Sync google3 github
2022-06-17 14:23:23 +02:00
StefanBruens
61b2a08faa
Set SWIGWORDSIZE dependent on architecture bitness ( #3313 )
...
* Set SWIGWORDSIZE dependent on architecture bitness
Setting SWIGWORDSIZE to 64bit on 32bit archs breaks build on
32 bit archs, e.g. i586 or armv7.
See #3271 .
Co-authored-by: Red Daly <reddaly@gmail.com >
2022-05-30 11:58:51 +02:00
Laurent Perron
8ef66920d9
use pybind11 for ortools/graph
2022-03-31 18:21:20 +02:00
Laurent Perron
f2e3e8e41f
initial implementation of the model builder in python
2022-03-23 17:47:22 +01:00
Corentin Le Molgat
0ca2eb3087
python: fix missing glop/bop in setup.py.in
2022-02-28 08:54:23 +01:00
Mizux Seiha
a096ca219c
export few more proto
2022-02-26 01:47:32 +01:00
Mizux Seiha
32b101b9ee
cmake: Fixup for pdlp
2022-02-25 23:43:01 +01:00
Corentin Le Molgat
1acf891fe2
cmake: Fix missing pywrap_model_builder_helper in python package
2022-02-25 14:29:26 +01:00
Mizux Seiha
5c4deb53f7
cmake(python): fix model_builder build
2022-02-24 08:24:53 +01:00
Laurent Perron
d0be88fddb
update linear_solver pdlp inteface; add model_builder python/wrappers files
2022-02-23 21:14:30 +01:00
Laurent Perron
833ae17e99
Use pybind11 instead for swig for sorted_interval_list and cp_sat swig_helper; speed up CP-SAT presolve; add missing std includes
2022-02-22 18:33:45 +01:00
Corentin Le Molgat
172227d54d
cmake(python): disable venv option --system-site-packages
2022-02-21 15:30:27 +01:00
Corentin Le Molgat
689160bfe1
python: use system-site-packages for venv
...
on Alpine pillow package from pip can't be built
2021-12-13 16:15:50 +01:00
Mizux Seiha
655eec5260
cmake: rework python
2021-12-03 14:20:19 +01:00
Corentin Le Molgat
d51879e3d7
cmake: cleanup <lang>.cmake
2021-11-26 10:29:35 +01:00
Mizux Seiha
f0fdd90c64
python: install pandas and matplotlib in venv
2021-11-17 20:57:19 +01:00
Mizux Seiha
229db02749
cmake: clean python.cmake
2021-11-17 15:45:49 +01:00
Mizux Seiha
d0e7970c6b
cmake: Added GLPK support and docs
...
* Use Mizux/GLPK (Tag 5.0)
* cmake: Fix swig flags
* cmake: Update ortoolsConfig.cmake
2021-11-17 14:04:57 +01:00
Mizux Seiha
ddeb35881e
cmake: Use virtualenv instead of venv
...
windows runner fail when using venv...
2021-11-17 12:30:01 +01:00
Mizux Seiha
a27974a1da
cmake: Fix error when using MSVC
2021-11-17 12:28:42 +01:00
Mizux Seiha
5713958c45
cmake: Use PROJECT_NAMESPACE
2021-11-17 12:28:42 +01:00
Corentin Le Molgat
bcd652c7b2
python: Add numpy as dependency
...
Use version shipped with Ubuntu 18.04 as minimal version.
src: https://launchpad.net/ubuntu/+source/python-numpy
2021-11-15 11:46:27 +01:00
Corentin Le Molgat
4f7d1cc258
cmake(python): cleanup
2021-11-05 14:10:37 +01:00
Mizux Seiha
89dc88bfdd
cmake(python): Fix search module functions
...
* Don't look for __version__ when unavailable
2021-11-04 14:46:55 +01:00
Corentin Le Molgat
09051d756b
cmake(python): improve non rebuild
2021-10-29 17:39:19 +02:00
Corentin Le Molgat
61aa579f5c
cmake(python): add missing __version__ to ortools package
2021-10-29 17:37:46 +02:00
Corentin Le Molgat
04393e43d1
python: Fix venv not being updated
2021-10-29 17:22:37 +02:00
Mizux Seiha
44f5a2a365
cmake(python): Fixup Fetch_python_deps
2021-10-06 18:42:13 +02:00
Mizux Seiha
4414beac1d
cmake(python): Add FETCH_PYTHON_DEPS option
2021-10-06 18:27:15 +02:00
Mizux Seiha
3bbe33d977
cmake: Fix search_python_module ( Fix #2814 )
2021-10-05 10:40:52 +02:00
Mizux Seiha
f351428eed
cmake: Fixup cmake.python
2021-09-28 18:40:19 +02:00
Mizux Seiha
b94fb9d41d
cmake: Rework python.cmake
2021-09-28 17:49:02 +02:00
Laurent Perron
f6fa781fa4
split ortools/data into ortools/scheduling and ortools/packing
2021-09-28 15:58:37 +02:00
Corentin Le Molgat
1be12af58f
cmake: cleanup
2021-09-17 15:13:11 +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
b16c345786
cleanup python.cmake
2021-03-26 15:24:41 +01:00
Mizux Seiha
4a025e23c0
cmake: Add init
2021-03-21 16:19:12 +01:00
Mizux Seiha
e4344ec7c9
cmake: Propagate use of PROTOC_PRG
2021-01-08 17:49:26 +01:00
Mizux Seiha
f037b6edcf
python: Fix venv management
2020-12-07 16:21:25 +01:00
Mizux Seiha
73d7218347
cmake: Update python
2020-12-02 15:11:48 +01:00
Mike Purvis
d1f987e1ae
cmake: Rework python install rule
...
* Install python as system-wide library
* Add support for DESTDIR prefix
* if DESTDIR relative make it relative to PROJECT_BUILD_DIR
note: This extend and replace #2107
2020-11-26 16:09:54 +01:00
Mizux Seiha
a9d12fa767
python: Six cleanup, add absl-py
2020-11-18 11:41:16 +01:00
Mizux Seiha
5149b9d16a
cmake: Cleanup python.cmake
2020-10-08 16:15:49 +02:00
Mizux Seiha
9dd84e15a2
cmake: Fix python function
2020-09-22 19:09:12 +02:00
Mizux Seiha
73e21fa3a2
python: Replace virtualenv by venv ( Fix #2035 )
2020-09-21 09:51:01 +02:00
Mizux Seiha
7640e00946
cmake: Cleanup comments
2020-09-18 19:57:25 +02:00
Mizux Seiha
66d8190822
cmake: Fix python build ( Fix #2160 )
2020-09-18 19:56:56 +02:00
Mizux Seiha
1d00eefb44
cmake(python): Add samples
2020-09-17 18:45:56 +02:00
Mizux Seiha
8058b32d5f
cmake: Filter out broken examples
...
todo: investigate them one by one...
2020-09-17 15:10:23 +02:00
Mizux Seiha
7d149a6530
cmake: examples management cleanup
2020-09-13 00:04:50 +02:00