
* contrib-spiral: submit SPIRAL package recipe and HCOL package recipe (extension package for SPIRAL) to spack * contrib-spiral: fix flake8 complaints for spiral & hcol * contrib-spiral: Revisions to package recipes to address comments * contrib-spiral: remove unecessary 'test' function * contrib-spiral: update hcol package to install in <prefix>/namespaces/packages/hcol * contrib-spiral: don't import os to hcol * contrib-spiral: tweak hcol package recipe
26 lines
934 B
Python
26 lines
934 B
Python
# Copyright 2013-2019 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 Hcol(Package):
|
|
"""This is the SPIRAL package for the Hybrid Control Operator Language
|
|
(HCOL)."""
|
|
|
|
homepage = "https://https://spiral.net"
|
|
url = "https://github.com/spiral-software/spiral-package-hcol/archive/1.0.0.zip"
|
|
|
|
maintainers = ['spiralgen']
|
|
extends('spiral')
|
|
|
|
version('1.0.0', sha256='9a95574e2b061d03d264c32dbf733e893017d1644b6486c7a8a55a3b24783f58')
|
|
|
|
# HCOL package is an extension for Spiral. Install the files in their own
|
|
# prefix, in "namespaces/packages/hcol". This allows 'spack activate' to
|
|
# symlink hcol at the right location for spiral packages.
|
|
def install(self, spec, prefix):
|
|
install_tree('.', prefix.namespaces.packages.hcol)
|