summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-05-04 13:51:07 -0400
committerGitHub <noreply@github.com>2021-05-04 12:51:07 -0500
commit16b720effb42415d64226c908527ccf64722e779 (patch)
tree2043b08e05eedad0fe0a4b3a720812c4fea29ce9
parent2d9988c5b76ca9971fbc402e9d3a03ebd3f1c399 (diff)
downloadspack-16b720effb42415d64226c908527ccf64722e779.tar.gz
spack-16b720effb42415d64226c908527ccf64722e779.tar.bz2
spack-16b720effb42415d64226c908527ccf64722e779.tar.xz
spack-16b720effb42415d64226c908527ccf64722e779.zip
New package: py-pytorch-lightning (#23353)
* lightning with friends * fixed style errors in lightning * [py-pytorch-lightning] fixed homepage * [py-pytorch-lightning] removed release canidate version * [py-pytorch-lightning] fixing some dependency listing issues * [py-pytorch-lightning] removed py-pydepreciate * [py-pytorch-lightning] more dependency cleanup Co-authored-by: Sid Pendelberry <sid@rit.edu>
-rw-r--r--var/spack/repos/builtin/packages/py-pytorch-lightning/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pytorch-lightning/package.py b/var/spack/repos/builtin/packages/py-pytorch-lightning/package.py
new file mode 100644
index 0000000000..982362e966
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pytorch-lightning/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2021 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 PyPytorchLightning(PythonPackage):
+ """PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers."""
+
+ homepage = "https://github.com/PyTorchLightning/pytorch-lightning"
+ pypi = "pytorch-lightning/pytorch-lightning-1.2.10.tar.gz"
+
+ version('1.2.10', sha256='2d8365e30ded0c20e73ce6e5b6028478ae460b8fd33727df2275666df005a301')
+
+ conflicts('py-pyyaml@5.4') # OmegaConf requirement >=5.1
+ conflicts('py-tensorboard@2.5.0') # 2.5.0 GPU CI error: Couldn't build proto file into descriptor pool!
+
+ # requirements from setup.py
+ depends_on('py-setuptools', type='build')
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-torch@1.4:', type=('build', 'run'))
+ depends_on('py-numpy@1.16.6:', type=('build', 'run'))
+ depends_on('py-future@0.17.1:', type=('build', 'run'))
+ depends_on('py-pyyaml@5.1:', type=('build', 'run'))
+ depends_on('py-tqdm@4.41.0:', type=('build', 'run'))
+ depends_on('py-fsspec@0.8.1:+http', type=('build', 'run'))
+ depends_on('py-tensorboard@2.2.0:', type=('build', 'run'))
+ depends_on('py-torchmetrics@0.2.0', type=('build', 'run'))
+ depends_on('py-packaging', type=('build', 'run'))