mirror of
https://github.com/borgbackup/borg.git
synced 2024-09-11 12:36:12 +03:00
pyenv recently gained the ability to use (and actually prefer) openssl 1.1 on mac OS. we need to use python 3.5.3, older is not compatible with openssl 1.1. with python 3.5.2, python was built without ssl support. also, we need to set the right PKG_CONFIG_PATH, so borg also uses 1.1.
16 lines
441 B
Bash
Executable File
16 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
if [[ "$(uname -s)" == "Darwin" ]]; then
|
|
eval "$(pyenv init -)"
|
|
# set our flags to use homebrew openssl
|
|
export ARCHFLAGS="-arch x86_64"
|
|
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
fi
|
|
|
|
# do not use fakeroot, but run as root on travis.
|
|
# avoids the dreaded EISDIR sporadic failures. see #2482.
|
|
sudo -E bash -c "source ~/.venv/bin/activate ; tox -e $TOXENV -r"
|