summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-04-25 01:56:10 +0900
committerGitHub <noreply@github.com>2020-04-24 11:56:10 -0500
commit051d0d935aeb96f01497356c515877faa8cc8484 (patch)
tree475f59f2d709b383d2c2e6b3afec6cd551987563 /var
parent95a03f6759b99701dfa9bd7c299b838057b5a28a (diff)
downloadspack-051d0d935aeb96f01497356c515877faa8cc8484.tar.gz
spack-051d0d935aeb96f01497356c515877faa8cc8484.tar.bz2
spack-051d0d935aeb96f01497356c515877faa8cc8484.tar.xz
spack-051d0d935aeb96f01497356c515877faa8cc8484.zip
Chainer: New Package. (#16251)
* Chainer: New Package. * 1. Add maintainers. 2. fix dependency. 3. Add typing-extention@3.6.6 and fix version dependency. * afixed dependency. * remove python dependency for version 6.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-chainer/package.py36
-rw-r--r--var/spack/repos/builtin/packages/py-typing-extensions/package.py4
2 files changed, 39 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-chainer/package.py b/var/spack/repos/builtin/packages/py-chainer/package.py
new file mode 100644
index 0000000000..c75383b469
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-chainer/package.py
@@ -0,0 +1,36 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyChainer(PythonPackage):
+ """
+ Chainer is a Python-based deep learning framework aiming at flexibility.
+
+ It provides automatic differentiation APIs based on the define-by-run
+ approach (a.k.a. dynamic computational graphs) as well as object-oriented
+ high-level APIs to build and train neural networks.
+ It also supports CUDA/cuDNN using CuPy for high performance training
+ and inference.
+ """
+
+ homepage = "https://chainer.org/"
+ url = "https://github.com/chainer/chainer/archive/v7.2.0.tar.gz"
+
+ maintainers = ['adamjstewart']
+
+ version('7.2.0', sha256='6e2fba648cc5b8a5421e494385b76fe5ec154f1028a1c5908557f5d16c04f0b3')
+ version('6.7.0', sha256='87cb3378a35e7c5c695028ec91d58dc062356bc91412384ea939d71374610389')
+
+ depends_on('python@3.5.1:', when='@7:', type=('build', 'run'))
+ depends_on('py-setuptools', type=('build', 'run'))
+ depends_on('py-numpy@1.9:', type=('build', 'run'))
+ depends_on('py-six@1.9.0:', type=('build', 'run'))
+ depends_on('py-typing-extensions', type=('build', 'run'))
+ depends_on('py-typing-extensions@:3.6.6', when='@:6', type=('build', 'run'))
+ depends_on('py-filelock', type=('build', 'run'))
+ depends_on('py-protobuf@3:', type=('build', 'run'))
+ depends_on('py-typing@:3.6.6', when='@:6', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-typing-extensions/package.py b/var/spack/repos/builtin/packages/py-typing-extensions/package.py
index 7a2b3ab5fb..02376449f0 100644
--- a/var/spack/repos/builtin/packages/py-typing-extensions/package.py
+++ b/var/spack/repos/builtin/packages/py-typing-extensions/package.py
@@ -17,7 +17,9 @@ class PyTypingExtensions(PythonPackage):
version('3.7.4', sha256='2ed632b30bb54fc3941c382decfd0ee4148f5c591651c9272473fea2c6397d95')
version('3.7.2', sha256='fb2cd053238d33a8ec939190f30cfd736c00653a85a2919415cecf7dc3d9da71')
+ version('3.6.6', sha256='51e7b7f3dcabf9ad22eed61490f3b8d23d9922af400fe6656cb08e66656b701f')
depends_on('python@2.7:2.8,3.4:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
- depends_on('py-typing@3.7.4:', when='^python@:3.4', type=('build', 'run'))
+ depends_on('py-typing@3.7.4:', when='@3.7: ^python@:3.4', type=('build', 'run'))
+ depends_on('py-typing@3.6.2:', when='^python@:3.4', type=('build', 'run'))