Package Details: python-or-tools 9.11-4

Git Clone URL: https://aur.archlinux.org/python-or-tools.git (read-only, click to copy)
Package Base: python-or-tools
Description: Google's Operations Research tools
Upstream URL: https://github.com/google/or-tools
Keywords: or-tools ortools
Licenses: Apache-2.0
Submitter: dariost
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 8
Popularity: 0.50
First Submitted: 2017-07-11 23:45 (UTC)
Last Updated: 2024-10-05 19:24 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

fow0ryl commented on 2022-01-15 11:38 (UTC) (edited on 2022-01-15 11:38 (UTC) by fow0ryl)

New version 9.2-1 build is working fine for me now. Did not have the packages installed which are named as dependency by @kruzah .... Only python-numpy was installed (as dependency of cura)

kruzah commented on 2022-01-15 11:21 (UTC)

Build misses several dependencies that cause the package to fail to build. Please add dependencies python-numpy, python-pandas, absl-py, and python-mypy-protobuf to PKGBUILD (I'm unsure which of these are runtime deps and which are make-only). Sourced from here

sameer commented on 2022-01-14 18:29 (UTC)

Hey all, sorry for the delay. This is fixed in 0ef1baa82d54.

Seems like the makefile method originally used no longer works, so the PKGBUILD now uses cmake directly as outlined here: https://github.com/google/or-tools/blob/stable/cmake/README.md

Let me know if you run into any other issues.

ericfont commented on 2022-01-12 19:49 (UTC)

I'm getting "ERROR: A failure occured in build(). Aborting..." on 9.2-1, but I don't know why cause my terminal screen doesn't go back enough.

fow0ryl commented on 2021-12-30 12:17 (UTC) (edited on 2021-12-30 12:19 (UTC) by fow0ryl)

version 9.2 did not build ...

got tons of errors:

/home/itsme/.cache/yay/python-or-tools/src/or-tools-9.2/dependencies/sources/scip-master/src/tclique/tclique.h:221:12: Fehler: expected »;« before »int«
221 | SCIP_EXPORT
|            ^

and finaly:

-- Installing: /home/itsme/.cache/yay/python-or-tools/src/or-tools-9.2/dependencies/install/lib/cmake/protobuf/protobuf-config-version.cmake
make[1]: Verzeichnis „/home/itsmeg/.cache/yay/python-or-tools/src/or-tools-9.2/dependencies/sources/protobuf-v3.19.1/build_cmake“ wird verlassen
==> FEHLER: Ein Fehler geschah in build().
Breche ab...
-> error making: python-or-tools

firoz commented on 2021-10-14 13:43 (UTC)

The package() step fails for me: pip [..] → no such option: --root

nobodyinperson commented on 2021-04-10 12:11 (UTC) (edited on 2021-04-10 14:02 (UTC) by nobodyinperson)

For those struggling to build python-or-tools on aarch64, here are the required changes for the PKGBUILD (at least for v8.2...):

diff --git a/PKGBUILD b/PKGBUILD
index cd226ff..eb72f8b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,8 +15,20 @@ sha384sums=('e5fdd4b5a40442fdafe48e677d8c45dc27d64f70bb42d508dd90e4ca64fed54be59

 build() {
     cd "${srcdir}/or-tools-${pkgver}"
+    if test "$CARCH" = "aarch64";then
+        # get up-to-date scripts
+        wget http://savannah.gnu.org/cgi-bin/viewcvs/\*checkout\*/config/config/config.guess
+        wget http://savannah.gnu.org/cgi-bin/viewcvs/\*checkout\*/config/config/config.sub
+        # overwrite old broken scripts with new ones by symlinks
+        find -mindepth 2 -iname config.guess | while read f;do ln -rsf config.guess "$f";done
+        find -mindepth 2 -iname config.sub  | while read f;do ln -rsf config.sub "$f";done
+    fi
     make third_party
     pacman -Qi cplex &> /dev/null && echo 'UNIX_CPLEX_DIR = /usr/lib' >> Makefile.local
+    if test "$CARCH" = "aarch64";then
+        # really dirty symlink to fix compilation on aarch64
+        ln -rsf dependencies/install/lib/libtpinone-7.0.1.linux.{arm,x86_64}.gnu.opt.a
+    fi
     make python
     make pypi_archive
 }

Further info: https://github.com/google/or-tools/issues/2434#issuecomment-817126196

sameer commented on 2020-12-12 03:09 (UTC)

I've updated to v8.1 in b62a6cbdb46d

sameer commented on 2020-10-11 14:35 (UTC) (edited on 2020-10-11 14:39 (UTC) by sameer)

I've updated to v8.0 and added MadTux's suggestion in b6b5cf447d0d.

MadTux commented on 2020-08-14 15:56 (UTC) (edited on 2020-08-14 15:57 (UTC) by MadTux)

Could you add something like pacman -Qi cplex &> /dev/null && echo 'UNIX_CPLEX_DIR = /usr/lib' >> Makefile.local to build() please?

So that CPLEX can be used out of the box when it is installed.

EDIT: This would go between make third_party and make python according to the OR-Tools docs.