Date: Monday, January 2, 2023 @ 14:11:24
  Author: dvzrv
Revision: 1372928

upgpkg: python-tensorflow-estimator 2.10-2: Rebuild to fix makedepends.

Remove pip from the list of makedepends and use python-installer to install 
created wheel.

Modified:
  python-tensorflow-estimator/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-02 14:05:29 UTC (rev 1372927)
+++ PKGBUILD    2023-01-02 14:11:24 UTC (rev 1372928)
@@ -3,13 +3,13 @@
 
 pkgname=python-tensorflow-estimator
 pkgver=2.10
-pkgrel=1
+pkgrel=2
 pkgdesc="A high-level TensorFlow API that greatly simplifies machine learning 
programming"
 url="https://github.com/tensorflow/estimator";
 license=('APACHE')
 arch=('any')
 depends=('python-wrapt')
-makedepends=('bazel' 'python-wheel' 'python-setuptools' 'python-pip' 
'python-tensorflow')
+makedepends=('bazel' 'python-installer' 'python-setuptools' 
'python-tensorflow' 'python-wheel')
 
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/estimator/archive/v${pkgver}.tar.gz";)
 
sha512sums=('63cdc97d9abf3551a931372ab91e86b1cab761ea7476182ed82ac7c56884d315107b1873376385bcdfc531465c11fe0273aefe8b88e8b333d8e7b54e7d0a09eb')
 
@@ -17,7 +17,7 @@
   cd estimator-${pkgver}
 
   bazel build //tensorflow_estimator/tools/pip_package:build_pip_package
-  bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package 
${srcdir}/estimator_pip
+  bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package 
"${srcdir}/estimator_pip"
 }
 
 check() {
@@ -32,5 +32,5 @@
   cd estimator-${pkgver}
 
   WHEEL_PACKAGE=$(find "$srcdir"/estimator_pip -name "tensor*.whl")
-  pip install --ignore-installed --upgrade --root "$pkgdir"/ $WHEEL_PACKAGE 
--no-dependencies
+  python -m installer --destdir="$pkgdir" $WHEEL_PACKAGE
 }

Reply via email to