Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update conda recipes for Enhanced Compatibility effort #164

Merged
merged 1 commit into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions conda/recipes/cucim/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{% set py_version=environ.get('CONDA_PY', 37) %}
{% set python_version=environ.get('PYTHON_VER', '3.7') %}
{% set cuda_version='.'.join(environ.get('CUDA', '11.0').split('.')[:2]) %}
{% set cuda_major=cuda_version.split('.')[0] %}

package:
name: cucim
Expand All @@ -15,7 +16,7 @@ source:

build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda_{{ cuda_version }}_py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
string: cuda_{{ cuda_major }}_py{{ py_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script_env:
- CC
- CXX
Expand All @@ -37,7 +38,7 @@ requirements:
- scipy
- scikit-image 0.18.1
run:
- cudatoolkit {{ cuda_version }}.*
- {{ pin_compatible('cudatoolkit', max_pin='x', min_pin='x') }}
- python {{ python_version }}.*
- libcucim {{ version }}.*
- click
Expand Down
5 changes: 3 additions & 2 deletions conda/recipes/libcucim/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %}
{% set python_version=environ.get('PYTHON_VER', '3.7') %}
{% set cuda_version='.'.join(environ.get('CUDA', '11.0').split('.')[:2]) %}
{% set cuda_major=cuda_version.split('.')[0] %}

package:
name: libcucim
Expand All @@ -14,7 +15,7 @@ source:

build:
number: {{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_version }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script_env:
- CC
- CXX
Expand All @@ -37,7 +38,7 @@ requirements:
- zstd
- libwebp-base # [linux or osx]
run:
- cudatoolkit {{ cuda_version }}.*
- {{ pin_compatible('cudatoolkit', max_pin='x', min_pin='x') }}
# - openslide # skipping here but benchmark binary would needs openslide library
- zlib
- jpeg
Expand Down