python.pkgs.tensorflow: fix build with newer gast
This commit is contained in:
parent
1fbd307880
commit
4fb7831cb4
@ -114,6 +114,14 @@ let
|
|||||||
})
|
})
|
||||||
|
|
||||||
./tf-1.15-bazel-1.0.patch
|
./tf-1.15-bazel-1.0.patch
|
||||||
|
|
||||||
|
(fetchpatch {
|
||||||
|
# be compatible with gast >0.2 instead of only gast 0.2.2
|
||||||
|
name = "gast-update.patch";
|
||||||
|
url = "https://github.com/tensorflow/tensorflow/commit/85751ad6c7f5fd12c6c79545d96896cba92fa8b4.patch";
|
||||||
|
sha256 = "077cpj0kzyqxzdya1dwh8df17zfzhqn7c685hx6iskvw2979zg2n";
|
||||||
|
})
|
||||||
|
./lift-gast-restriction.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
# On update, it can be useful to steal the changes from gentoo
|
# On update, it can be useful to steal the changes from gentoo
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/tensorflow/tools/pip_package/setup.py b/tensorflow/tools/pip_package/setup.py
|
||||||
|
index 992f2eae22..d9386f9b13 100644
|
||||||
|
--- a/tensorflow/tools/pip_package/setup.py
|
||||||
|
+++ b/tensorflow/tools/pip_package/setup.py
|
||||||
|
@@ -54,7 +54,7 @@ REQUIRED_PACKAGES = [
|
||||||
|
'astor >= 0.6.0',
|
||||||
|
'backports.weakref >= 1.0rc1;python_version<"3.4"',
|
||||||
|
'enum34 >= 1.1.6;python_version<"3.4"',
|
||||||
|
- 'gast == 0.2.2',
|
||||||
|
+ 'gast >= 0.2.2',
|
||||||
|
'google_pasta >= 0.1.6',
|
||||||
|
'keras_applications >= 1.0.8',
|
||||||
|
'keras_preprocessing >= 1.0.5',
|
Loading…
Reference in New Issue
Block a user