Commit Graph

200 Commits

Author SHA1 Message Date
Corentin Le Molgat
f157f7d77d Add test_pypi_archive 2018-09-24 17:37:50 +02:00
Corentin Le Molgat
e9e6e9ba3a pypi_archive: make it dependent of ortools_libs 2018-09-21 14:38:55 +02:00
Corentin Le Molgat
12fd6cdaf8 clean_python: suppress all temp-python* 2018-09-21 14:38:54 +02:00
Laurent Perron
759bdb12c3 add latest examples to python tests 2018-09-19 14:24:28 +02:00
Corentin Le Molgat
e10c3cc99c Add magic_sequence_sat to test_python 2018-09-19 08:26:14 +02:00
Corentin Le Molgat
a4a035be55 Python: Create target test_python_tests for UT 2018-09-18 10:19:59 +02:00
Corentin Le Molgat
4bb95a8193 Rework *EX_DIR/*EX_PATH macro 2018-09-18 10:10:25 +02:00
Corentin Le Molgat
7d7d8cdefd Bump to Protobuf 3.6.1 (Fix #838) 2018-09-10 10:15:42 +02:00
Corentin Le Molgat
a1fdabf3b1 Makefile: remove redundant ortoolslibs target
- prefere to use `cc` phony target or $(OR_TOOLS_LIBS) file
2018-09-04 10:07:32 +02:00
Corentin Le Molgat
ca00c21e3c python: Makefile cleanup 2018-08-31 18:23:08 +02:00
Corentin Le Molgat
2e3131b643 python: Rework examples target
- Fix default solver to use CBC instead of GLPK (which is optional)
- Fix few examples which doesn't compile against python2.7
- Add all examples to target test_python
  - Few examples disabled since they are too long
2018-08-29 16:56:25 +02:00
Corentin Le Molgat
ebfee949c0 Cleanup Makefile.python.mk 2018-08-29 16:56:25 +02:00
Corentin Le Molgat
83769e920e Python: Fix manylinux wheel package 2018-07-23 09:42:33 +02:00
Corentin Le Molgat
6830065387 centos: pypi_archive fix copy of libproto* 2018-07-20 16:12:32 +02:00
Corentin Le Molgat
46ab823345 python: add description to pypi_upload 2018-07-13 19:11:16 +02:00
Corentin Le Molgat
4f24443b17 Move windows tools to tools/win 2018-07-10 11:16:20 +02:00
Corentin Le Molgat
710e753009 Fix python on centos
- LD_LIBRARY_PATH must look into lib64 folder too
2018-07-05 14:53:26 +02:00
Corentin Le Molgat
0eabf6cea6 Split SWIG_LIB_SUFFIX for Python and .NET (Fix #742) 2018-07-04 12:17:29 +02:00
Corentin Le Molgat
b32dafacc6 Makefile: cc java python dotnet become idempotent
- Remove implicit rules
- Fix python obj/swig deps
- Keep intermediate file and dir
- remove MISSING_BUILD_DIRECTORIES
- Use GEN_DIR and GEN_PATH
- Remove GMake SUFFIXES
2018-07-03 22:27:35 +02:00
Corentin Le Molgat
efc46ca1bf Add documentation to C++ and Python Package
For C++ doc:
/usr/share/doc/ortools
ref: https://www.debian.org/doc/manuals/debian-reference/debian-reference.en.txt

For Python doc:
ref: https://www.python.org/dev/peps/pep-0427/#the-data-directory
ref: https://www.python.org/dev/peps/pep-0491/#install-paths
/!\ Please not bdist_wheel command ignore MANIFEST.in and
 there is no 'doc_dir' option in class Distribution cf.
https://github.com/pypa/setuptools/blob/master/setuptools/dist.py
2018-05-31 15:12:02 +02:00
Corentin Le Molgat
85bd99092b [PYTHON] Rework to use dynamic dependencies
- Fix DYNAMIC_LD on MacOS
- Fixup @rpath in python wrapper
- Rework clean_python target
- Cleaning rpy target
- Echo test_python rules
- Add all *vrp* samples to test_python
- Rework pypi_archive target
  - Copy shared library to python tempDir
  - Update setup.py
- Echo install_python rules (i.e. remove of @)
- Add uninstall_python target
- Update detect_python target
2018-05-28 08:08:49 +02:00
Corentin Le Molgat
02877e28f1 [UNIX][DEPS] Build dependencies as dynamic libs
Unix:
- Rename install_directories rule
  this target creates dependencies/install dir not ortools install dir
- replace $(LIB_SUFFIX) by $L to be consistent with $E and $O suffix
- fix rpath, no need anymore patchelf
  -> remove prerequisite $(PATCHELF) in install_cc
- use build_cmake as build directory
  note: MacOS is case insensitive when creating directory
  and bazel file is named BUILD -> `mkdir build` won't work
- Fix CMD_LNK on mac
- Fix MacOS LINK_FLAGS
- MacOS also use LIB_DIR = lib

Win:
- Fix windows lib suffix $L

Protobuf:
- Need to use PROTOC (like MONO) to add LD_LIBRARY_PATH hack
  -> PROTOC = LD_LIBARY_PATH="..." protoc
  -> replace $(PROTOBUF_DIR)/bin/protoc by $(PROTOC)
- Remove uneeded PROTOBUF_DIR defs
- Apply patch to protobuf to use @rpath on MacOS
- Add rpath to protobuf install rules

Coin-OR
- Use coin-or github repos mirror instead of the svn repo (Fix #379)
- Use the splited Cbc (CoinUtils, Osi, Clp, Cgl, Cbc)
note: usually distro use this layout cf https://repology.org/metapackage/coin-or-cbc/badges
- Fix rpath for all coin-or libraries at post-install using patchelf (linux) or otools (osx)
2018-05-28 08:08:49 +02:00
Corentin Le Molgat
b385229297 Makefile: Remove *.pyc when calling cleaning (Fix #676)
- now, `make clean` remove *.pyc files in ortools/
2018-05-02 09:54:34 +02:00
Corentin Le Molgat
57be45802c Fix clean_python 2018-03-16 16:13:55 +01:00
Corentin Le Molgat
816cf75f5e Add install_python target (#610) 2018-03-07 13:35:57 +01:00
Corentin Le Molgat
11a22957a4 Fix echo blankline on windows 2018-03-06 15:03:40 +01:00
Corentin Le Molgat
9b41cae639 Update detect_* targets 2018-03-06 14:34:41 +01:00
Corentin Le Molgat
6eff7e4476 Add newline at end of each help_* targets 2018-03-06 14:23:47 +01:00
Laurent Perron
76809379df simplify C# dependencies, remove build loop on python 2018-03-06 12:56:14 +01:00
Laurent Perron
a4f4c2d5a6 move check_third_party into ortoolslib target; avoid rebuilding C# all the time 2018-03-06 11:42:06 +01:00
Corentin Le Molgat
54ceb6d56b Remove vector packing from python ortools_examples (#607) 2018-03-06 10:10:58 +01:00
Corentin Le Molgat
c4bfef29e1 Fix windows python executable... 2018-03-05 13:52:26 +01:00
Corentin Le Molgat
51b56430f5 Rework Makefile help 2018-03-05 09:17:28 +01:00
Corentin Le Molgat
6f0b6af5d5 Fix windows python executable search path 2018-03-05 09:17:28 +01:00
Corentin Le Molgat
7793b23c87 fixing python on windows 2018-03-01 11:57:34 +01:00
Corentin Le Molgat
3bb38cc1c5 Clean Makefile on Windows
-Appveyor fixup
- Windows create dependencies/archives dir
- Correct third_party_win diri path
- Correct zlib dir for Windows Makefile
- use of $(WHICH)
- Add $(GREP)
2018-03-01 10:28:11 +01:00
Corentin Le Molgat
70114a411a Windows: replace "where" by "tools\which"
- silent which.exe in case of error
Otherwise you'll get the too verbose path
2018-02-28 17:41:13 +01:00
Corentin Le Molgat
2bd7f9d1bb Fix help_XXX target on Windows 2018-02-28 15:20:56 +01:00
Corentin Le Molgat
a9ab55e3e6 Rework AppVeyor CI jobs 2018-02-28 15:20:56 +01:00
Corentin Le Molgat
f2bac8d1b2 Protect PYTHON_EXECUTABLE from split 2018-02-28 15:14:48 +01:00
Corentin Le Molgat
4739c51447 Rework Python Makefile
- add help_python
2018-02-27 13:42:22 +01:00
Laurent Perron
238386a0f9 export util/optional_boolean in python module 2018-01-16 14:35:25 +01:00
Laurent Perron
e15d5db1c2 remove dummy module from pypi setup 2017-12-13 09:23:22 +01:00
Laurent Perron
8d7320b962 deep sync with base library; prepare for abseil.io integration 2017-12-08 14:52:49 +01:00
Corentin Le Molgat
707a8789bf rework Makefile 'detect' target 2017-12-01 15:30:47 +01:00
Corentin Le Molgat
90438e85b9 Fix CANONIC_PYTHON_EXECUTABLE 2017-11-24 11:37:20 +01:00
Corentin Le Molgat
ff4c547128 Fix PYTHON_XXX substitution
By default on Windows, Python should be installed in C:\Program Files\...
leading to the error:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
2017-11-24 11:18:26 +01:00
Laurent Perron
0ead5718d6 add notebooks to python archives 2017-11-24 10:45:16 +01:00
Laurent Perron
f3a9a1f2d6 fix python3 support in and out of protobufs 2017-11-17 00:19:34 +01:00
Laurent Perron
6c484ad4f8 fix sat python support in or-tools 2017-11-16 23:27:58 +01:00