diff --git a/recipe/meta.yaml b/recipe/meta.yaml index a8b5a688..042316da 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -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', @@ -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. @@ -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') }} @@ -167,6 +168,7 @@ outputs: host: - python - pip + - setuptools - numpy - libfaiss ={{ version }}=*_{{ faiss_proc_type }} - libgomp # [linux]