Commit Graph

220 Commits

Author SHA1 Message Date
Corentin Le Molgat
97fd0095a7 Makefile: Update archive targets recipe 2018-11-19 09:40:09 +01:00
Laurent Perron
461f0ac74c fix 2018-11-18 15:01:20 -08:00
Laurent Perron
2373859e19 fix shift_scheduling_sat.py 2018-11-18 09:04:16 -08:00
Corentin Le Molgat
97044de369 Makefile: Add samples rules for algorithm and graph 2018-11-16 15:10:15 +01:00
Laurent Perron
c75045897b merge simple_solve_sample_sat into simple_sat_program; update doc 2018-11-16 05:02:48 -08:00
Laurent Perron
8fd62c9e43 reorganize all sat samples to have regular naming
Remove sub-method in C# sat sample, just use Main()
2018-11-15 10:56:34 -08:00
Laurent Perron
ef0b82c794 polish cp is fun python, C++, C# samples 2018-11-10 13:04:03 +01:00
Corentin Le Molgat
2e5e79cdc7 Add linear_solver/samples/SimpleLPProgram 2018-11-09 12:53:46 +01:00
Laurent Perron
1665e776dc add last samples to make test_python_samples 2018-11-08 12:53:30 +01:00
Laurent Perron
b176edfbea fix jobshop python samples; add first linear solver lp sample; fix makefile 2018-11-08 11:20:51 +01:00
Laurent Perron
807a8a855b fix on windows 2018-11-07 23:30:10 +01:00
Laurent Perron
5bb4f639c5 fix python test scripts 2018-11-07 22:09:43 +01:00
Laurent Perron
48d4fe2b89 fix makefiles after contrib example 2018-11-07 21:31:58 +01:00
Corentin Le Molgat
8eeadbecce Add SimpleProgram
This is the example use in optimization site:
GUIDES/Introduction/GetStarted/<lang>/RunningProgram
2018-11-06 14:36:21 +01:00
Corentin Le Molgat
c18421ab44 Makefile: Add build/run target
- Add build/run target to archive Makefile
- Be able to run cc/python/java/dotnet examples in //
2018-10-31 08:33:43 +01:00
Corentin Le Molgat
ac42c57a8e Update stigler_diet example (C++, Python) 2018-10-15 10:10:06 +02:00
Corentin Le Molgat
f6ec77d4ef Add check_python target
Add linear_programming.py
2018-10-15 10:10:06 +02:00
Corentin Le Molgat
49247b4898 Rework Python temp directory
- Make temp dir consistent using underscore
- Fixup TEMP_DIR in build_delivery_* scripts
2018-10-02 08:21:10 +02:00
Corentin Le Molgat
c934a8e296 Upload publish script 2018-10-01 08:32:01 +02:00
Corentin Le Molgat
909ae1d071 Fix "test_pypi_archive" target on windows 2018-09-27 16:10:09 +02:00
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