diff options
author | Jen Herting <jen@herting.cc> | 2020-10-22 17:36:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 16:36:34 -0500 |
commit | fd3dbb24932f0971fbf3dfd4ce545eb6c64cb913 (patch) | |
tree | 0e7d592b11b679fa609b1b4c0a662e6c6b613128 /var | |
parent | 4ec404dfc07d7fd61f752016a4b1eef0257d328c (diff) | |
download | spack-fd3dbb24932f0971fbf3dfd4ce545eb6c64cb913.tar.gz spack-fd3dbb24932f0971fbf3dfd4ce545eb6c64cb913.tar.bz2 spack-fd3dbb24932f0971fbf3dfd4ce545eb6c64cb913.tar.xz spack-fd3dbb24932f0971fbf3dfd4ce545eb6c64cb913.zip |
New package: py-torchfile (#19481)
* [py-torchfile] created template
* [py-torchfile] set python versions
* [py-torchfile] depends on py-numpy
* [py-torchfile] fixed url format
* [py-torchfile] added homepage and description. removed fixmes
* [py-torchfile] fixed url format
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-torchfile/package.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-torchfile/package.py b/var/spack/repos/builtin/packages/py-torchfile/package.py new file mode 100644 index 0000000000..e739c065b7 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-torchfile/package.py @@ -0,0 +1,22 @@ +# 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 PyTorchfile(PythonPackage): + """Mostly direct port of the torch7 Lua and C serialization + implementation to Python, depending only on numpy (and the + standard library: array and struct). Sharing of objects + including torch.Tensors is preserved.""" + + homepage = "https://github.com/bshillingford/python-torchfile" + url = "https://pypi.io/packages/source/t/torchfile/torchfile-0.1.0.tar.gz" + # license = "BSD-3-Clause" + + version('0.1.0', sha256='a53dfe134b737845a9f2cb24fe0585317874f965932cebdb0439d13c8da4136e') + + depends_on('python@2.7:2.999,3.4:', type=('build', 'run')) + depends_on('py-numpy', type=('build', 'run')) |