Skip to content

Commit 72d92d2

Browse files
committed
Added conda recipe
1 parent 4feceed commit 72d92d2

4 files changed

Lines changed: 57 additions & 0 deletions

File tree

‎conda/bld.bat‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cd python
2+
3+
set "HOST_PYTHON=%PYTHON:\=/%"
4+
set "CMAKE_GENERATOR=Ninja"
5+
set "CMAKE_ARGS=-DPython3_EXECUTABLE:FILEPATH=%HOST_PYTHON% %CMAKE_ARGS%"
6+
%PYTHON% -m pip install -v --no-build-isolation .

‎conda/build.sh‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
cd python
5+
HOST_PYTHON="${PYTHON//\\/\/}"
6+
export CMAKE_GENERATOR=Ninja
7+
export CMAKE_ARGS="-DPython3_EXECUTABLE:FILEPATH=${HOST_PYTHON} ${CMAKE_ARGS:-}"
8+
"$PYTHON" -m pip install -v --no-build-isolation .

‎conda/conda_build_config.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python:
2+
- 3.10
3+
- 3.11
4+
- 3.12
5+
- 3.13

‎conda/meta.yaml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{% set version = "1.3.1" %}
2+
3+
package:
4+
name: occ_gordon
5+
version: {{ version }}
6+
7+
source:
8+
git_url: https://github.com/rainman110/occ_gordon
9+
git_tag: main # v{{ version }}
10+
11+
build:
12+
number: 0
13+
14+
requirements:
15+
build:
16+
- ninja
17+
- cmake
18+
- swig
19+
- scikit-build-core
20+
21+
host:
22+
- python {{ python }}
23+
- pip
24+
- scikit-build-core
25+
- pythonocc-core==7.9.3
26+
27+
run:
28+
- python {{ python }}
29+
- pythonocc-core
30+
31+
test:
32+
imports:
33+
- occ_gordon
34+
35+
about:
36+
home: https://github.com/rainman110/occ_gordon
37+
license: Apache 2.0
38+
summary: A gordon surface algorithm for pythonocc

0 commit comments

Comments
 (0)