Skip to content

Commit

Permalink
fix(py): set explicit py_version for python outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth committed Feb 26, 2025
1 parent e27c1f3 commit 33da531
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 18 deletions.
7 changes: 4 additions & 3 deletions conda/recipes/cudf-polars/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ context:
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") | version_to_buildstring }}
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}

package:
Expand All @@ -19,7 +20,7 @@ source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_version }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}
script:
content: |
./build.sh cudf_polars
Expand All @@ -41,7 +42,7 @@ build:

requirements:
host:
- python
- python =${{ py_version }}
- pip
- rapids-build-backend >=0.3.0,<0.4.0.dev0
- setuptools
Expand Down
7 changes: 4 additions & 3 deletions conda/recipes/cudf/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ context:
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") | version_to_buildstring }}
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}

package:
Expand All @@ -19,7 +20,7 @@ source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_version }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}
script:
content: |
./build.sh cudf
Expand Down Expand Up @@ -49,7 +50,7 @@ requirements:
- cuda-version =${{ cuda_version }}
- ${{ stdlib("c") }}
host:
- python
- python =${{ py_version }}
- pip
- cython >=3.0.3
- rapids-build-backend >=0.3.0,<0.4.0.dev0
Expand Down
7 changes: 4 additions & 3 deletions conda/recipes/cudf_kafka/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ context:
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") | version_to_buildstring }}
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}

package:
Expand All @@ -19,7 +20,7 @@ source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_version }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}
script:
content: |
./build.sh -v cudf_kafka
Expand Down Expand Up @@ -49,7 +50,7 @@ requirements:
- cuda-version =${{ cuda_version }}
- ${{ stdlib("c") }}
host:
- python
- python =${{ py_version }}
- pip
- cython >=3.0.3
- cuda-version =${{ cuda_version }}
Expand Down
7 changes: 4 additions & 3 deletions conda/recipes/custreamz/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ context:
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") | version_to_buildstring }}
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}

package:
Expand All @@ -19,7 +20,7 @@ source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_version }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}
script:
content: |
./build.sh -v custreamz
Expand All @@ -41,7 +42,7 @@ build:

requirements:
host:
- python
- python =${{ py_version }}
- pip
- rapids-build-backend >=0.3.0,<0.4.0.dev0
- setuptools
Expand Down
7 changes: 4 additions & 3 deletions conda/recipes/dask-cudf/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ context:
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") | version_to_buildstring }}
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}

package:
Expand All @@ -19,7 +20,7 @@ source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_version }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}
script:
content: |
./build.sh dask_cudf
Expand All @@ -41,7 +42,7 @@ build:

requirements:
host:
- python
- python =${{ py_version }}
- pip
- rapids-build-backend >=0.3.0,<0.4.0.dev0
- setuptools
Expand Down
7 changes: 4 additions & 3 deletions conda/recipes/pylibcudf/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ context:
cuda_version: ${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[:2] | join(".") }}
cuda_major: '${{ (env.get("RAPIDS_CUDA_VERSION") | split("."))[0] }}'
date_string: '${{ env.get("RAPIDS_DATE_STRING") }}'
py_version: ${{ env.get("RAPIDS_PY_VERSION") | version_to_buildstring }}
py_version: ${{ env.get("RAPIDS_PY_VERSION") }}
py_buildstring: ${{ py_version | version_to_buildstring }}
head_rev: ${{ git.head_rev(".")[:8] }}

package:
Expand All @@ -19,7 +20,7 @@ source:
path: ../../..

build:
string: cuda${{ cuda_major }}_py${{ py_version }}_${{ date_string }}_${{ head_rev }}
string: cuda${{ cuda_major }}_py${{ py_buildstring }}_${{ date_string }}_${{ head_rev }}
script:
content: |
./build.sh pylibcudf
Expand Down Expand Up @@ -49,7 +50,7 @@ requirements:
- cuda-version =${{ cuda_version }}
- ${{ stdlib("c") }}
host:
- python
- python =${{ py_version }}
- pip
- cython >=3.0.3
- rapids-build-backend >=0.3.0,<0.4.0.dev0
Expand Down

0 comments on commit 33da531

Please sign in to comment.