guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: tensorflow: Provide older setuptools version.


From: guix-commits
Subject: 01/04: gnu: tensorflow: Provide older setuptools version.
Date: Fri, 19 Jul 2019 09:09:25 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 0fdec2a309bfc9c62b449524e3e71714674bca6e
Author: Marius Bakke <address@hidden>
Date:   Fri Jul 19 14:57:06 2019 +0200

    gnu: tensorflow: Provide older setuptools version.
    
    * gnu/packages/python-xyz.scm (python-setuptools-for-tensorflow): New public
    variable.
    * gnu/packages/machine-learning.scm (tensorflow)[native-inputs]: Add it.
---
 gnu/packages/machine-learning.scm |  3 +++
 gnu/packages/python-xyz.scm       | 13 +++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index ace52b4..e3c6994 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1604,6 +1604,9 @@ INSTALL_RPATH " (assoc-ref outputs "out") "/lib)\n")))
        ("protobuf:native" ,protobuf-next) ; protoc
        ("protobuf:src" ,(package-source protobuf-next))
        ("eigen:src" ,(package-source eigen-for-tensorflow))
+       ;; install_pip_packages.sh wants setuptools 39.1.0 specifically.
+       ("python-setuptools" ,python-setuptools-for-tensorflow)
+
        ;; The commit hashes and URLs for third-party source code are taken
        ;; from "tensorflow/workspace.bzl".
        ("boringssl-src"
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 65dffd3..6796f1c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -713,6 +713,19 @@ Python 3 support.")
 (define-public python2-setuptools
   (package-with-python2 python-setuptools))
 
+;; The setuptools provided by Python 3.7.4 is too new for Tensorflow.
+(define-public python-setuptools-for-tensorflow
+  (hidden-package
+   (package
+     (inherit python-setuptools)
+     (version "39.1.0")
+     (source (origin
+               (inherit (package-source python-setuptools))
+               (uri (pypi-uri "setuptools" version ".zip"))
+               (sha256
+                (base32
+                 "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65")))))))
+
 (define-public python-uniseg
   (package
     (name "python-uniseg")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]