Skip to content

Commit 8bf1174

Browse files
committed
Apply nvtiff patch to set enum on nvtiffTagDataType
Fix `Unable to generate bindings: ClangDiagnostic("/home/docs/checkouts/readthedocs.org/user_builds/cupy-xarray/conda/81/targets/x86_64-linux/include/nvtiff.h:553:5: error: must use 'enum' tag to refer to type 'nvtiffTagDataType'\n")`
1 parent 77adbbc commit 8bf1174

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build:
99
post_install:
1010
# https://github.com/weiji14/cog3pio/pull/71
1111
- export CONDA_PREFIX="$CONDA_ENVS_PATH/$CONDA_DEFAULT_ENV";
12+
sed --in-place "s/nvtiffTagDataType type/enum nvtiffTagDataType type/g" $CONDA_PREFIX/include/nvtiff.h;
1213
ln -s $CONDA_PREFIX/include/nvtiff.h $CONDA_PREFIX/targets/x86_64-linux/include/nvtiff.h;
1314
ln -s $CONDA_PREFIX/include/nvtiff_version.h $CONDA_PREFIX/targets/x86_64-linux/include/nvtiff_version.h;
1415
ln -s $CONDA_PREFIX/lib/libnvtiff.so $CONDA_PREFIX/targets/x86_64-linux/lib/libnvtiff.so;

0 commit comments

Comments
 (0)