Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages /
tensorflow
Commits:
fc5d7d38 by Sven-Hendrik Haase at 2024-10-02T13:47:46+02:00
upgpkg: 2.18rc0-1
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- − tensorflow-numpy2.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = tensorflow
pkgdesc = Library for computation using data flow graphs for scalable
machine learning
- pkgver = 2.17.0
- pkgrel = 2
+ pkgver = 2.18rc0
+ pkgrel = 1
url = https://www.tensorflow.org/
arch = x86_64
license = APACHE
@@ -35,13 +35,11 @@ pkgbase = tensorflow
depends = intel-oneapi-openmp
depends = intel-oneapi-compiler-shared-runtime-libs
optdepends = tensorboard: Tensorflow visualization toolkit
- source =
tensorflow-2.17.0.tar.gz::https://github.com/tensorflow/tensorflow/archive/v2.17.0.tar.gz
+ source =
tensorflow-2.18rc0.tar.gz::https://github.com/tensorflow/tensorflow/archive/v2.17.0.tar.gz
source = tensorflow-2.16.1-python-distutils-removal.patch
- source = tensorflow-numpy2.patch
source =
https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel_nojdk-6.5.0-linux-x86_64
sha512sums =
45061f075971cf2bc219a34b1cda2ee9851ba586e94046838e6e1fd26adcfb399d90e71e89a0f709d5282ff3be7cc3a82b81d62dce53db5010640ea41487a469
sha512sums =
e4c44d2f5314b83d8ed404e5ec14960ef8b7df0c1a2a3e826f913a02c901f9fd0326f9014a602121e0fdb2f928d1459f8b8180455491a1f937ce84e12f6a7d3e
- sha512sums =
c4da1e72c90534a5a1f7625b819dc2529fa5b91c8423550ca4384ec243bddd026b977d5f81660114f054ce8f64cd90057f6482f89df4af443f35da1871202c1d
sha512sums =
d3789f0ecd354468f2e24d98501041430ae99c173320fa9c3eb02f225c08ed298fd1ad259e4ad9bb70b6ae89d84cd87460aaa720de3486d40b30777a8fe45453
pkgname = tensorflow
=====================================
PKGBUILD
=====================================
@@ -5,9 +5,9 @@
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.17.0
+pkgver=2.18rc0
_pkgver=2.17.0
-pkgrel=2
+pkgrel=1
pkgdesc="Library for computation using data flow graphs for scalable machine
learning"
url="https://www.tensorflow.org/"
license=('APACHE')
@@ -20,11 +20,9 @@ makedepends=('bazel' 'python-numpy' 'cuda' 'nvidia-utils'
'nccl' 'git' 'cudnn' '
optdepends=('tensorboard: Tensorflow visualization toolkit')
source=("$pkgname-$pkgver.tar.gz::https://github.com/tensorflow/tensorflow/archive/v${_pkgver}.tar.gz"
tensorflow-2.16.1-python-distutils-removal.patch
- tensorflow-numpy2.patch
https://github.com/bazelbuild/bazel/releases/download/6.5.0/bazel_nojdk-6.5.0-linux-x86_64)
sha512sums=('45061f075971cf2bc219a34b1cda2ee9851ba586e94046838e6e1fd26adcfb399d90e71e89a0f709d5282ff3be7cc3a82b81d62dce53db5010640ea41487a469'
'e4c44d2f5314b83d8ed404e5ec14960ef8b7df0c1a2a3e826f913a02c901f9fd0326f9014a602121e0fdb2f928d1459f8b8180455491a1f937ce84e12f6a7d3e'
-
'c4da1e72c90534a5a1f7625b819dc2529fa5b91c8423550ca4384ec243bddd026b977d5f81660114f054ce8f64cd90057f6482f89df4af443f35da1871202c1d'
'd3789f0ecd354468f2e24d98501041430ae99c173320fa9c3eb02f225c08ed298fd1ad259e4ad9bb70b6ae89d84cd87460aaa720de3486d40b30777a8fe45453')
# consolidate common dependencies to prevent mishaps
@@ -65,13 +63,6 @@ prepare() {
export PATH="${srcdir}/bazel:$PATH"
bazel --version
- # Python 3.12 removed the distutils module
- #
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/issues/7
- # patch -Np1 -i ../tensorflow-numpy2.patch -d tensorflow-${_pkgver}
- # cd tensorflow-${_pkgver}/ci/official/requirements_updater
- # ./updater.sh
- # cd -
-
# Python 3.12 removed the distutils module
#
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/issues/7
patch -Np1 -i ../tensorflow-2.16.1-python-distutils-removal.patch -d
tensorflow-${_pkgver}
=====================================
tensorflow-numpy2.patch deleted
=====================================
@@ -1,35 +0,0 @@
-diff --git a/ci/official/requirements_updater/requirements.in
b/ci/official/requirements_updater/requirements.in
-index 5c5892b2..0ee2eea0 100644
---- a/ci/official/requirements_updater/requirements.in
-+++ b/ci/official/requirements_updater/requirements.in
-@@ -1,6 +1,6 @@
- # TODO(b/304751256): Adjust the numpy pin to a single version, when ready
- numpy ~= 1.23.5 ; python_version <= "3.11"
--numpy ~= 1.26.0 ; python_version >= "3.12"
-+numpy ~= 2.0.0 ; python_version >= "3.12"
- wheel ~= 0.41.2
- h5py >= 3.10.0
- lit ~= 17.0.2
-@@ -25,7 +25,8 @@ tensorboard ~= 2.17.0
- # Test dependencies
- grpcio >= 1.24.3, < 2.0
- portpicker == 1.6.0
--scipy == 1.11.3
-+scipy == 1.11.3 ; python_version <= "3.11"
-+scipy == 1.14.0 ; python_version >= "3.12"
- requests == 2.31.0
- packaging==23.2
- setuptools==68.2.2
-diff --git a/tensorflow/tools/pip_package/setup.py
b/tensorflow/tools/pip_package/setup.py
-index 88da8b54..e4041765 100644
---- a/tensorflow/tools/pip_package/setup.py
-+++ b/tensorflow/tools/pip_package/setup.py
-@@ -86,7 +86,7 @@ REQUIRED_PACKAGES = [
- 'ml_dtypes >= 0.3.1, < 0.5.0',
- # TODO(b/304751256): Adjust the numpy pin to a single version, when ready
- 'numpy >= 1.23.5, < 2.0.0 ; python_version <= "3.11"',
-- 'numpy >= 1.26.0, < 2.0.0 ; python_version >= "3.12"',
-+ 'numpy ~= 2.0.0 ; python_version >= "3.12"',
- 'opt_einsum >= 2.3.2',
- 'packaging',
- # pylint:disable=line-too-long
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/commit/fc5d7d380255790d43f633d832db8cba8be8b923
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/commit/fc5d7d380255790d43f633d832db8cba8be8b923
You're receiving this email because of your account on gitlab.archlinux.org.