Package Details: python-or-tools 9.12-1

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.026112
First Submitted: 2017-07-11 23:45 (UTC)
Last Updated: 2025-03-27 14:53 (UTC)

Latest Comments

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

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.

sameer commented on 2020-08-06 00:28 (UTC)

Thanks mcol, added in cdf6e5b20c97

mcol commented on 2020-08-05 17:49 (UTC) (edited on 2020-08-05 17:49 (UTC) by mcol)

Hey, this needs git as a makedepend btw :)

sameer commented on 2020-06-13 06:11 (UTC) (edited on 2020-06-13 06:11 (UTC) by sameer)

flipflop97: thanks for bringing this to my attention, I've added it to makedepends. v7.7 was released today and I've also updated the package to reflect that

flipflop97 commented on 2020-06-05 18:19 (UTC)

Hi, it seems to require python-pip as makedepend. Can you add that?

sameer commented on 2020-04-24 04:00 (UTC)

FirefighterBlu3: looks like python-wheel was missing in makedepends, which I've now added.

In other news, I've updated to v7.6 which was released today.

FirefighterBlu3 commented on 2020-04-10 17:54 (UTC) (edited on 2020-04-10 17:54 (UTC) by FirefighterBlu3)

has breakage in build()

cp -R /tmp/pkgbuilder-995/python-or-tools/src/or-tools-7.5/dependencies/install/lib/libproto* temp_python3.8/ortools/ortools/.libs
cp -R /libabsl* temp_python3.8/ortools/ortools/.libs
cp: cannot stat '/libabsl*': No such file or directory
make: [makefiles/Makefile.python.mk:1102: pypi_archive] Error 1 (ignored)
cp -R dependencies/install/lib*/libCbc* temp_python3.8/ortools/ortools/.libs
cp -R dependencies/install/lib*/libCgl* temp_python3.8/ortools/ortools/.libs
cp -R dependencies/install/lib*/libClp* temp_python3.8/ortools/ortools/.libs
cp -R dependencies/install/lib*/libOsi* temp_python3.8/ortools/ortools/.libs
cp -R dependencies/install/lib*/libCoinUtils* temp_python3.8/ortools/ortools/.libs
cd temp_python3.8/ortools && "/usr/bin/python3.8" setup.py bdist_wheel
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'
make: *** [makefiles/Makefile.python.mk:1108: pypi_archive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...