Wrap yt package (#1751)
yt is a python package for analyzing and visualizing volumetric, multi-resolution data from astrophysical simulations, radio telescopes, and a burgeoning interdisciplinary community.
This commit is contained in:
parent
746495896c
commit
3c7ea3000a
78
var/spack/repos/builtin/packages/py-yt/package.py
Normal file
78
var/spack/repos/builtin/packages/py-yt/package.py
Normal file
@ -0,0 +1,78 @@
|
||||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
|
||||
from spack import *
|
||||
|
||||
|
||||
class PyYt(Package):
|
||||
"""Volumetric Data Analysis
|
||||
|
||||
yt is a python package for analyzing and visualizing
|
||||
volumetric, multi-resolution data from astrophysical
|
||||
simulations, radio telescopes, and a burgeoning
|
||||
interdisciplinary community.
|
||||
"""
|
||||
homepage = "http://yt-project.org"
|
||||
url = "https://bitbucket.org/yt_analysis/yt"
|
||||
|
||||
version("3.3.1", hg="https://bitbucket.org/yt_analysis/yt",
|
||||
tag="yt-3.3.1", commit="9bc3d0e9b750c923d44d73c447df64fc431f5838")
|
||||
version("3.2.3", hg="https://bitbucket.org/yt_analysis/yt",
|
||||
tag="yt-3.2.3", commit="83d2c1e9313e7d83eb5b96888451ff2646fd8ff3")
|
||||
version("3.1.0", hg="https://bitbucket.org/yt_analysis/yt",
|
||||
tag="yt-3.1.0", commit="fd7cdc4836188a3badf81adb477bcc1b9632e485")
|
||||
version("3.0.2", hg="https://bitbucket.org/yt_analysis/yt",
|
||||
tag="yt-3.0.2", commit="511887af4c995a78fe606e58ce8162c88380ecdc")
|
||||
version("2.6.3", hg="https://bitbucket.org/yt_analysis/yt",
|
||||
tag="yt-2.6.3", commit="816186f16396a16853810ac9ebcde5057d8d5b1a")
|
||||
version("development", hg="https://bitbucket.org/yt_analysis/yt",
|
||||
branch="yt")
|
||||
|
||||
variant("astropy", default=True, description="enable astropy support")
|
||||
variant("h5py", default=True, description="enable h5py support")
|
||||
variant("scipy", default=True, description="enable scipy support")
|
||||
|
||||
extends("python")
|
||||
|
||||
depends_on("py-astropy", type="nolink", when="+astropy")
|
||||
depends_on("py-cython", type="nolink")
|
||||
depends_on("py-h5py", type="nolink", when="+h5py")
|
||||
depends_on("py-ipython", type="nolink")
|
||||
depends_on("py-matplotlib", type="nolink")
|
||||
depends_on("py-numpy", type="nolink")
|
||||
depends_on("py-scipy", type="nolink", when="+scipy")
|
||||
depends_on("py-setuptools", type="build")
|
||||
depends_on("py-sympy", type="nolink")
|
||||
depends_on("python @2.7:2.999,3.4:")
|
||||
|
||||
def install(self, spec, prefix):
|
||||
setup_py("install", "--prefix=%s" % prefix)
|
||||
self.check_install(spec, prefix)
|
||||
|
||||
def check_install(self, spec, prefix):
|
||||
# The Python interpreter path can be too long for this
|
||||
# yt = Executable(join_path(prefix.bin, "yt"))
|
||||
# yt("--help")
|
||||
python(join_path(prefix.bin, "yt"), "--help")
|
Loading…
Reference in New Issue
Block a user