Skip to content

Commit 0196f38

Browse files
ENH: Migrate recipe to v1 format for rattler-build
1 parent 370a12f commit 0196f38

4 files changed

Lines changed: 233 additions & 217 deletions

File tree

recipe/build_output.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
set "CUDA_HOME=%PREFIX%\\%SUBDIR%"
2+
set "LIB=%PREFIX%\\%SUBDIR%\\lib\\%target_name%;%LIB%"
3+
14
set DIR_NAME=%PKG_NAME:-=_%
25
cd %DIR_NAME%
6+
IF "%DIR_NAME%"=="cuda_bindings" (
7+
REM The upstream setup.py calls get_version() without dist_name
8+
REM so only the generic SETUPTOOLS_SCM_PRETEND_VERSION is honored.
9+
set SETUPTOOLS_SCM_PRETEND_VERSION=%PKG_VERSION%
10+
)
311
%PYTHON% -m pip install . --no-deps -vv

recipe/build_output.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
export CUDA_HOME="${PREFIX}/${SUBDIR}"
4+
35
DIR_NAME="$(echo $PKG_NAME | tr '-' '_')"
46
cd $DIR_NAME
57
if [[ ${DIR_NAME} == "cuda_python" ]]; then

recipe/meta.yaml

Lines changed: 0 additions & 217 deletions
This file was deleted.

0 commit comments

Comments
 (0)