-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
meta.yaml
66 lines (59 loc) · 1.75 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{% set version = "1.11.2" %}
package:
name: python-blosc
version: {{ version }}
source:
url: https://pypi.io/packages/source/b/blosc/blosc-{{ version }}.tar.gz
sha256: ac5e7c1bfc1c7232b900be94cddb5ffcf9ea49f313c8ae98a7ca0dd87b872bf4
build:
number: 0
skip: True # [py<39]
script:
- export USE_SYSTEM_BLOSC=1 # [unix]
- set "USE_SYSTEM_BLOSC=1" # [win]
- {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
# When cross-compiling scikit-build will link to libpython.dylib which results
# in segfaults. Let's replace that with libc++
- ${INSTALL_NAME_TOOL} -change @rpath/libpython${PY_VER}.dylib @rpath/libc++.1.dylib ${PREFIX}/lib/python${PY_VER}/site-packages/blosc/blosc_extension.cpython-{{ py }}-darwin.so # [build_platform != target_platform and osx]
requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ stdlib("c") }}
- {{ compiler('cxx') }}
- cmake
- make
host:
- python
- pip
- blosc
- setuptools
- wheel
- scikit-build
run:
- python
test:
requires:
- pip
- numpy
- psutil
imports:
- blosc
commands:
- pip check
- python -c "import blosc; blosc.print_versions()"
- python -c "import blosc; blosc.test()"
about:
home: https://github.com/Blosc/python-blosc
license_family: BSD
license: BSD-3-Clause
license_file:
- LICENSE.txt
dev_url: https://github.com/Blosc/python-blosc
doc_url: http://python-blosc.blosc.org/
summary: A Python wrapper for the extremely fast Blosc compression library
extra:
recipe-maintainers:
- FrancescElies
- ocefpaf