spack/var/spack/repos/builtin/packages/cnpy/package.py

27 lines
664 B
Python
Raw Normal View History

2022-01-13 03:21:41 +08:00
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
2017-08-08 02:41:13 +08:00
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import sys
from spack import *
2017-08-08 02:41:13 +08:00
class Cnpy(CMakePackage):
"""cnpy: library to read/write .npy and .npz files in C/C++."""
homepage = "https://github.com/rogersce/cnpy"
git = "https://github.com/rogersce/cnpy.git"
2017-08-08 02:41:13 +08:00
version('master', branch='master')
2019-10-03 01:54:31 +08:00
depends_on('zlib', type='link')
def cmake_args(self):
args = []
if sys.platform == 'darwin':
args.extend(['-DCMAKE_MACOSX_RPATH=ON'])
return args