Skip to content

Commit

Permalink
conda-recipe: Ignore run_exports for libjpeg-turbo, to ensure that we…
Browse files Browse the repository at this point in the history
… don't get libjpeg-turbo as a run dependency
  • Loading branch information
stuarteberg committed Dec 28, 2021
1 parent 5ae7a1b commit a0726f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ build:
script_env:
- SKIP_LIBDVID_TESTS

ignore_run_exports:
- libjpeg-turbo

requirements:
##
## A note about krb5:
Expand Down Expand Up @@ -50,7 +53,7 @@ requirements:
- lz4-c {{ lz4_c }}
- zeromq {{ zeromq }}
- libpng 1.6.28
- libjpeg-turbo # Statically linked, so no runtime dependency below.
- libjpeg-turbo 2 # Statically linked, so no runtime dependency below.

# In 7.62.0, CURL_HTTP_VERSION_2TLS became the default setting for CURLOPT_HTTP_VERSION
- curl >=7.62.0
Expand Down
3 changes: 3 additions & 0 deletions conda-recipe/run_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import sys
import glob
import site
import platform
import subprocess

assert not glob.glob(f"{sys.prefix}/lib/libturbojpeg.*"), \
"libjpeg-turbo should not be a runtime dependency of libdvid-cpp!"

if platform.system() == "Darwin":
def get_symbols(lib_path):
Expand Down

0 comments on commit a0726f1

Please sign in to comment.