Created attachment 236448 [details] Keras 2.9.0 I've created an updated port of keras 2.9.0 to allow the use of the keras extensions within tensorflow. Tested the build within poudriere. Quick test with python 3.9 >>> import platform >>> platform.system() 'FreeBSD' >>> import tensorflow as tf >>> mnist = tf.keras.datasets.mnist >>> (x_train, y_train), (x_test, y_test) = mnist.load_data() >>> Tensorflow requires a newer version of keras to make use of the tf.keras.* modules. The one in the ports is currently too old.
It says: > [00:00:14] Error: Dependency loop detected: > These packages depend on each other: py39-tensorflow-1.15.5_7 py39-keras-2.9
Also WWW is now in Makefile. And USE_PYTHON=flavors should be in the Makefile.
Yeah, the old tensorflow port 1.5 depended on keras. However the dependency has changed. This port relies on bug 266303 to resolve as the new tensorflow 2.9.1 package doesn't depend on keras.
Committed, thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2dd8869d4b07e101d86d00bb01f83c9787ed9007 commit 2dd8869d4b07e101d86d00bb01f83c9787ed9007 Author: Anthony Donnelly <amzo1337@gmail.com> AuthorDate: 2022-09-13 20:30:31 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-09-13 20:32:36 +0000 math/py-keras: Update 2.4.3 -> 2.9.0 PR: 266311 math/py-keras/Makefile | 100 +++- math/py-keras/Makefile.MASTER_SITES (new) | 5 + math/py-keras/distinfo | 10 +- math/py-keras/files/bazelrc (new) | 18 + math/py-keras/files/freebsd/BUILD (new) | 88 ++++ .../files/freebsd/cc_toolchain_config.bzl (new) | 287 +++++++++++ math/py-keras/files/patch-.bazelrc (new) | 13 + math/py-keras/files/patch-WORKSPACE (new) | 57 ++ .../files/patch-keras_protobuf_BUILD (new) | 11 + .../files/patch-keras_protobuf_protobuf.bzl (new) | 220 ++++++++ ...tools_pip__package_build__pip__package.sh (new) | 20 + math/py-keras/files/patch-third__party_BUILD (new) | 19 + math/py-keras/files/pkg-message.in (gone) | 9 - math/py-keras/pkg-descr | 2 + math/py-keras/pkg-plist (new) | 572 +++++++++++++++++++++ 15 files changed, 1407 insertions(+), 24 deletions(-)