Files
Christopher Chavez 6b3ab73bc4 py-blosc: do not build bundled libraries
Add numpy test dependency
2021-01-17 20:42:44 -08:00

65 lines
2.3 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.0
name py-blosc
version 1.8.1
revision 1
categories-append devel
platforms darwin
license MIT
python.versions 27 35 36 37 38
maintainers {stromnov @stromnov} openmaintainer
description Python package that wraps the Blosc compressor
long_description Blosc (http://blosc.pytables.org) is a high performance \
compressor optimized for binary data. It has been \
designed to transmit data to the processor cache faster \
than the traditional, non-compressed, direct memory fetch \
approach via a memcpy() OS call. \
\
Blosc works well for compressing numerical arrays that \
contains data with relatively low entropy, like sparse \
data, time series, grids with regular-spaced values, etc. \
\
This is a Python package that wraps it.
homepage http://python-blosc.blosc.org/
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}
checksums rmd160 e3baf7239ee26b9864547cb877a6bd962aec6924 \
sha256 d2122eaa88eb5296fe0ee8031990eb61e2420eed823c305073aa9a9b77bd7b0e \
size 769220
if {${name} ne ${subport}} {
# Exception: py-cpuinfo currently only works on X86 and some ARM CPUs.
supported_archs i386 x86_64
depends_build-append \
port:py${python.version}-setuptools
depends_lib-append port:blosc
depends_test-append \
port:py${python.version}-numpy
build.args-append --blosc=${prefix}
destroot.args-append \
--blosc=${prefix}
pre-test {
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
}
test.run yes
test.dir ${build.dir}/blosc
test.cmd ${python.bin} test.py
test.target
livecheck.type none
}