218 Commits

Author SHA1 Message Date
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
Mizux Seiha
4518ac6b12 cmake: Fix swig flags when using -DUSE_SCIP=OFF 2020-08-20 21:23:23 +02:00
Mizux Seiha
3b7d00802e cmake: use of BUILD_EXAMPLES 2020-07-31 11:27:08 +02:00
Mizux Seiha
92916f1bfa cmake: Fix proto_path 2020-07-17 13:16:40 +02:00
Mizux Seiha
1a1da66113 cmake: SCIP cleanup 2020-07-02 23:39:46 +02:00
Mizux Seiha
6356303a3d cmake(python): Add missing proto, file and lib 2020-05-29 14:15:31 +02:00
Mizux Seiha
88a9286e66 cmake(python): Fixup 2020-05-28 22:12:16 +02:00
Mizux Seiha
d9aa61ae36 cmake(python): Fix windows build 2020-05-28 19:57:37 +02:00
Corentin Le Molgat
91090ce34f Fix tab in cmake files 2020-05-27 17:13:48 +02:00
Mizux Seiha
ab872d12e5 cmake(python): Search six module
We still have python2/3 test which depends on six...
2020-05-21 20:16:59 +02:00
Mizux Seiha
e972b84811 cmake: Fix python call 2020-05-21 09:39:36 +02:00
Mizux Seiha
90a3155af1 cmake(python): Fix module update 2020-05-20 18:46:57 +02:00
Mizux Seiha
775aec03dd cmake(python): Refactor
* Use new Python module
* Use setup.py.in input file (should fix windows error)
2020-05-20 10:13:14 +02:00
Mizux Seiha
c84eb033c9 Python: Cleanup setup.py 2020-05-16 13:01:07 +02:00
Mizux Seiha
196871adee deps: protobuf still don't provide a 3.11.4 package
note: to revert once Protobuf team release it !
2020-04-29 09:58:23 +02:00
Mizux Seiha
b903560395 cmake: Fix SWIG_FLAGS when enabling several languages 2020-04-10 11:51:30 +02:00
Corentin Le Molgat
506ebe9679 Cmake: Update Proto comment 2020-03-05 08:43:45 +01:00
Corentin Le Molgat
56f21f5a4e CMake: update foreach 2020-03-02 17:23:34 +01:00
Corentin Le Molgat
4c7456b175 CMake: Update Python support
* Add define SWIGWORDSIZE64 on Linux
* Add -doxygen option
* add ortools/util/python
* Move python generated stuff to BINARY_DIR/python
* Bump CMake >= 3.14 as requirement
  * SWIG module rework from 3.9 to 3.14
  * Python module rework in 3.12
* Drop Python 2.7 support (like in Makefile)
* Fix clean target
  * OUTPUT/BYPRODUCTS path are relative to CURRENT_BINARY_DIR not WORKING_DIR
* Fix ortools package install in virtualenv
* Clean target now remove the <build>/venv directory
2020-02-28 08:21:27 +01:00
Corentin Le Molgat
fd4ce1131c CMake: Update wrapper support 2020-02-14 11:12:44 +01:00
Corentin Le Molgat
d6fe894136 CMake: Fix python build 2020-02-11 14:41:16 +01:00
Corentin Le Molgat
f9cb28a370 CMake: allow python3.8 support 2020-02-07 15:39:26 +01:00
Mizux
ef779c4101 Update python.cmake
Add *.pyi file to archive if any...
2020-01-16 15:43:41 +01:00