Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Nov 23, 2024
1 parent 30bfb3a commit cff31ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{% set cuda_major = environ.get("cuda_compiler_version", "11.8").split(".")[0] | int %}
{% else %}
{% set cuda_major = 0 %}
{% set cuda_compiler_version = "None" %}
{% endif %}

# headers for upstream-folders 'faiss/*.h', 'faiss/{impl,invlists,utils}/*.h',
Expand Down Expand Up @@ -83,8 +84,8 @@ outputs:
script: build-lib.sh # [unix]
script: build-lib.bat # [win]
build:
string: "h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version == "None"]
string: "cuda{{ cuda_compiler_version|replace(".", "") }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version != "None"]
string: "h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version == "None"]
string: "cuda{{ cuda_compiler_version | replace('.', '') }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version != "None"]
run_exports:
# faiss follows SemVer, so restrict packages built with libfaiss to use
# at least the same version at runtime, but below the next major version.
Expand Down Expand Up @@ -151,8 +152,8 @@ outputs:
script: build-pkg.sh # [not win]
script: build-pkg.bat # [win]
build:
string: "py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version == "None"]
string: "py{{ CONDA_PY }}cuda{{ cuda_compiler_version|replace(".", "") }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version != "None"]
string: "py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version == "None"]
string: "py{{ CONDA_PY }}cuda{{ cuda_compiler_version | replace('.', '') }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ faiss_proc_type }}" # [cuda_compiler_version != "None"]
requirements:
build:
- {{ stdlib('c') }}
Expand All @@ -167,6 +168,7 @@ outputs:
host:
- python
- pip
- setuptools
- numpy
- libfaiss ={{ version }}=*_{{ faiss_proc_type }}
- libgomp # [linux]
Expand Down

0 comments on commit cff31ef

Please sign in to comment.