-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmeta.yaml
64 lines (57 loc) · 1.56 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
{% set version = "0.21.1" %}
package:
name: wgpu-py
version: {{ version }}
source:
url: https://pypi.org/packages/source/w/wgpu/wgpu-{{ version }}.tar.gz
sha256: 7da2f20a75eb7baef47b582dd8df179fea65060eb7212b817324a0635529dae7
build:
noarch: python
script_env:
# Avoid pulling in any binary files during the hatchling building process
# https://github.com/pygfx/wgpu-py/pull/669
- WGPU_PY_BUILD_NOARCH=1
script:
# Don't vendor the headers, let them get pulled in by webgpu-headers at runtime
- rm wgpu/resources/webgpu.h # [unix]
- rm wgpu/resources/wgpu.h # [unix]
- del wgpu\resources\webgpu.h # [win]
- del wgpu\resources\wgpu.h # [win]
- {{ PYTHON }} -m pip install . -vv
number: 0
requirements:
host:
- python {{ python_min }}
- pip
- hatchling
run:
- python >={{ python_min }}
- cffi >=1.15.0
- rubicon-objc >=0.4.1 # [osx]
- sniffio
# https://github.com/pygfx/wgpu-py/blob/main/wgpu/backends/wgpu_native/__init__.py
- wgpu-native 24.0.3.1
- webgpu-headers
- __linux # [linux]
- __win # [win]
- __osx # [osx]
run_constrained: # [osx]
# seems like rubicon-objc doesn't support pypy...
- python *=*_cpython # [osx]
test:
imports:
- wgpu
- wgpu.backends.wgpu_native
requires:
- pip
- python {{ python_min }}
commands:
- pip check
about:
home: https://github.com/pygfx/wgpu-py
summary: next generation GPU API for Python
license: BSD-2-Clause
license_file: LICENSE
extra:
recipe-maintainers:
- hmaarrfk