Torsten Keßler pushed to branch main at Arch Linux / Packaging / Packages / 
tensorflow


Commits:
c582150a by Torsten Keßler at 2024-12-15T22:29:34+01:00
upgpkg: 2.18.0-4

Warn users about broken package with python 3.13

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + tensorflow.install


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,8 +1,9 @@
 pkgbase = tensorflow
        pkgdesc = Library for computation using data flow graphs for scalable 
machine learning
        pkgver = 2.18.0
-       pkgrel = 3
+       pkgrel = 4
        url = https://www.tensorflow.org/
+       install = tensorflow.install
        arch = x86_64
        license = APACHE
        makedepends = bazel


=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@ pkgbase=tensorflow
 pkgname=(tensorflow tensorflow-opt tensorflow-cuda tensorflow-opt-cuda 
python-tensorflow python-tensorflow-opt python-tensorflow-cuda 
python-tensorflow-opt-cuda)
 pkgver=2.18.0
 _pkgver=2.18.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Library for computation using data flow graphs for scalable machine 
learning"
 url="https://www.tensorflow.org/";
 license=('APACHE')
@@ -27,6 +27,7 @@ 
sha512sums=('177decaafcdef27afee84a17268f473141d2d0c092d5f3fe33c9cdd3ce4fd52f6b4
             
'03e8d7188a81cc237899f4f287f129e7759d268f604252636e007e1ffe71b6a07926c219f79b5bf1f8c088345e292eff461d2375ca1a73af435cdca182e9c26c'
             
'e4c44d2f5314b83d8ed404e5ec14960ef8b7df0c1a2a3e826f913a02c901f9fd0326f9014a602121e0fdb2f928d1459f8b8180455491a1f937ce84e12f6a7d3e'
             
'd3789f0ecd354468f2e24d98501041430ae99c173320fa9c3eb02f225c08ed298fd1ad259e4ad9bb70b6ae89d84cd87460aaa720de3486d40b30777a8fe45453')
+install=tensorflow.install
 
 # consolidate common dependencies to prevent mishaps
 _common_py_depends=(python-termcolor python-astor python-gast python-numpy 
python-protobuf absl-py


=====================================
tensorflow.install
=====================================
@@ -0,0 +1,14 @@
+python_version_warning() {
+  echo "WARNING: This version of the TensorFlow package is not compatible with 
Python 3.13"
+  echo ""
+  echo "If you want to use TensorFlow, consider installing an older version of 
Python and use a virtual environment or use the official Docker image,"
+  echo "https://www.tensorflow.org/install";
+}
+
+post_install() {
+  python_version_warning
+}
+
+post_upgrade() {
+  python_version_warning
+}



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/commit/c582150a7621b9254c0b9de071f5adbf1f2afda8

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/commit/c582150a7621b9254c0b9de071f5adbf1f2afda8
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to