Skip to content

Commit

Permalink
Pin libprotobuf and protobuf to 5.24 which works with python 3.8-3.12…
Browse files Browse the repository at this point in the history
… in conda (#5643)

- libprotobuf and protobuf 5.25 seems to be incompatible with python 3.8,
  so pin it to 5.24

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
  • Loading branch information
JanuszL committed Sep 24, 2024
1 parent 1e1f7cc commit 92ea873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
9 changes: 2 additions & 7 deletions conda/dali_native_libs/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ requirements:
- python-clang
- git-lfs
host:
- protobuf >=3.26.1
- libprotobuf-static >=3.6.1
- protobuf =5.27.4
- libprotobuf-static =5.27.4
- libjpeg-turbo
- dali-opencv
- dali-ffmpeg
Expand All @@ -97,11 +97,6 @@ requirements:
# Since we link statically, we need to add those dependencies explicitly
- libwebp-base
- openjpeg
# libprotobuf-static we link statically depends on libabseil so add protobuf here as a runtime
# dependency to install the right version on the libabseil (as protobuf depends on
# libprotobuf-static and a newer version of libprotobuf-static may be available than
# the protobuf was build with)
- protobuf >=3.26.1
- cfitsio
- nvidia-nvimagecodec-cuda{{ environ.get('CUDA_VERSION', '') | replace(".","") }}

Expand Down
7 changes: 1 addition & 6 deletions conda/dali_python_bindings/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,15 @@ requirements:
- patchelf
- python-clang
- git-lfs
- astunparse >=1.6.0
- gast >=0.3.3
- dm-tree >=0.1.8
- black =24.4.2
- black-jupyter =24.4.2
- bandit
- nvidia-dali-core{% if environ.get('NVIDIA_DALI_BUILD_FLAVOR', '')|length %}{{"-" + environ.get('NVIDIA_DALI_BUILD_FLAVOR', '')}}{% endif %}-cuda{{ environ.get('CUDA_VERSION', '') | replace(".","") }} ={{ environ.get('DALI_CONDA_BUILD_VERSION', '') }}
host:
- libprotobuf-static =5.27.4
- dali-opencv
- dali-ffmpeg
- libprotobuf-static >=3.26.1
- python
- future
- protobuf >=3.26.1
- astunparse >=1.6.0
- gast >=0.3.3
- dm-tree >=0.1.8
Expand Down

0 comments on commit 92ea873

Please sign in to comment.