Skip to content

Commit

Permalink
Move python bindings to this feedstock. (#11)
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Aug 16, 2024
2 parents 0494ee5 + 86ba49e commit 261ffe5
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 14 deletions.
10 changes: 10 additions & 0 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ libpng:
- '1.6'
libxml2:
- '2'
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
target_platform:
- linux-64
zip_keys:
Expand Down
10 changes: 10 additions & 0 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ libxml2:
- '2'
macos_machine:
- x86_64-apple-darwin13.4.0
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
target_platform:
- osx-64
zlib:
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 21 additions & 5 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions recipe/install-python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -xeuo pipefail

export CMAKE_PREFIX_PATH=$PREFIX

$PYTHON -m pip install . -vv --no-deps

rm -rf $SP_DIR/halide/libHalide.so.*
50 changes: 42 additions & 8 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{% set name = "halide" %}
{% set version = "18.0.0" %}
{% set sha256 = "1176b42a3e2374ab38555d9316c78e39b157044b5a8e765c748bf3afd2edb351" %}
{% set build = 0 %}
{% set build = 1 %}
{% set llvm_version = 18 %}

package:
name: {{ name }}
Expand All @@ -24,10 +25,10 @@ requirements:
- cmake
- make
host:
- clangdev 18.*
- llvmdev 18.*
- llvm 18.*
- lld
- clangdev {{ llvm_version }}.*
- llvmdev {{ llvm_version }}.*
- llvm {{ llvm_version }}.*
- lld {{ llvm_version }}.*
- libxml2
- zlib
- libpng
Expand All @@ -40,17 +41,49 @@ test:
files:
- test.cpp

outputs:
- name: halide

- name: halide-python
script: install-python.sh
requirements:
build:
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- cmake
- make
host:
- python
- pybind11
- scikit-build
- pip
- {{ pin_subpackage("halide", exact=True) }}
- clangdev {{ llvm_version }}.*
- llvmdev {{ llvm_version }}.*
- llvm {{ llvm_version }}.*
- lld {{ llvm_version }}.*
- zlib
run:
- {{ pin_subpackage("halide", exact=True) }}
- python
- numpy
test:
imports:
- halide
about:
summary: 'python bindings for halide programming language'

about:
home: http://halide-lang.org
license: MIT
license_family: MIT
license_file: LICENSE.txt
summary: 'a language for image processing and computational photography'

description: |
Halide is a programming language designed to make it easier to write
high-performance data parallel processing code on modern machines. Its current front end is embedded in
C++. Compiler targets include x86/SSE, ARM v7/NEON, CUDA, Hexagon DSP, and OpenCL.
high-performance data parallel processing code on modern machines.
Its current front end is embedded in C++. Compiler targets include
x86/SSE, ARM v7/NEON, CUDA, Hexagon DSP, and OpenCL.
doc_url: http://halide-lang.org/docs/
dev_url: https://github.com/halide/Halide

Expand All @@ -60,3 +93,4 @@ extra:
- minrk
- steven-johnson
- isuruf
- alexreinking

1 comment on commit 261ffe5

@conda-forge-webservices
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! This is the friendly automated conda-forge-webservice.

I updated the Github team because of this commit.

You should get push access to this feedstock and CI services.

Your package won't be available for installation locally until it is built
and synced to the anaconda.org CDN (takes 1-2 hours after the build finishes).

Feel free to join the community Element channel.

NOTE: Please make sure to not push to the repository directly.
Use branches in your fork for any changes and send a PR.
More details on this are here.

Please sign in to comment.