From 27a1b2e73b35679f1c9d6464c696efb1387d7d64 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Wed, 17 Aug 2016 16:50:12 +0200 Subject: [PATCH] [extra-wheels] Add support to build menpo stuff on OSX --- extra-wheels.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extra-wheels.sh b/extra-wheels.sh index a54a9fc..ad5cc2a 100755 --- a/extra-wheels.sh +++ b/extra-wheels.sh @@ -20,5 +20,9 @@ if [ "${?}" != 0 ]; then fi echo "[>>] Generating wheels..." -CFLAGS="-I${CONDA_PREFIX}/include" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-rpath=${CONDA_PREFIX}/lib" pip --no-cache-dir wheel --no-deps ${CYVLFEAT} +if [ "$(uname)" == "Linux" ]; then + CFLAGS="-I${CONDA_PREFIX}/include" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-rpath=${CONDA_PREFIX}/lib" pip --no-cache-dir wheel --no-deps ${CYVLFEAT} +else + CFLAGS="-I${CONDA_PREFIX}/include -mmacosx-version-min=10.9" LDFLAGS="-L${CONDA_PREFIX}/lib -lvl -Wl,-headerpad_max_install_names" pip --no-cache-dir wheel --no-deps ${CYVLFEAT} +fi pip --no-cache-dir wheel --no-deps ${MENPO} -- GitLab