We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8435fa6 commit fc4d10dCopy full SHA for fc4d10d
1 file changed
scripts/run-tests.sh
@@ -6,8 +6,15 @@ source .venv/bin/activate
6
7
# Setting up LD_LIBRARY_PATH environment variable
8
# https://pyo3.rs/v0.28.2/building-and-distribution.html#dynamically-embedding-the-python-interpreter
9
+OS="$(uname)"
10
LIB_DIR=$(python3 -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
-export LD_LIBRARY_PATH="$LIB_DIR:${LD_LIBRARY_PATH:-}"
11
+
12
+if [[ "$OS" == "Darwin" ]]; then
13
+ export DYLD_LIBRARY_PATH="$LIB_DIR:${DYLD_LIBRARY_PATH:-}"
14
+else
15
+ export LD_LIBRARY_PATH="$LIB_DIR:${LD_LIBRARY_PATH:-}"
16
+fi
17
18
pytest tests/
19
20
cargo test --workspace --locked
0 commit comments