Fix linker errors
@@ -19,6 +19,15 @@ source:
build:
number: {{ build }}
skip: true # [(osx and cuda_compiler_version != "None") or win]
+ missing_dso_whitelist:
+ # pytorch builds put the libs in the wrong place, but hard to unbundle, see
+ # https://github.com/conda-forge/staged-recipes/pull/17082#issuecomment-1189149813
+ - "*/libc10{{ SHLIB_EXT }}"
+ - "*/libc10_cuda{{ SHLIB_EXT }}"
+ - "*/libtorch{{ SHLIB_EXT }}"
+ - "*/libtorch_cpu{{ SHLIB_EXT }}"
+ - "*/libtorch_cuda{{ SHLIB_EXT }}"
+ - "*/libtorch_python{{ SHLIB_EXT }}"
requirements:
build:
