Commit a4a71296 authored by Rob Buckley's avatar Rob Buckley
Browse files

use consistent bash test brackets

parent 141880c8
...@@ -16,9 +16,9 @@ BUILD_PREFIX="${BUILD_PREFIX:-/usr/local}" ...@@ -16,9 +16,9 @@ BUILD_PREFIX="${BUILD_PREFIX:-/usr/local}"
# IS_OSX is defined in common_utils.sh # IS_OSX is defined in common_utils.sh
if [ -n "$IS_OSX" ]; then if [ -n "$IS_OSX" ]; then
MAC_ARCH=$(mac_arch_for_pyosx_version $MB_PYTHON_OSX_VER) MAC_ARCH=$(mac_arch_for_pyosx_version $MB_PYTHON_OSX_VER)
if [ "$MAC_ARCH" == "intel" ]; then if [[ "$MAC_ARCH" == "intel" ]]; then
ARCH_FLAGS=${ARCH_FLAGS:-"-arch i386 -arch x86_64"} ARCH_FLAGS=${ARCH_FLAGS:-"-arch i386 -arch x86_64"}
elif [ "$MAC_ARCH" == "x86_x64" ]; then elif [[ "$MAC_ARCH" == "x86_x64" ]]; then
ARCH_FLAGS=${ARCH_FLAGS:-"-arch x86_64"} ARCH_FLAGS=${ARCH_FLAGS:-"-arch x86_64"}
else else
echo "invalid ARCH = '$MAC_ARCH'" echo "invalid ARCH = '$MAC_ARCH'"
......
...@@ -349,9 +349,9 @@ function repair_wheelhouse { ...@@ -349,9 +349,9 @@ function repair_wheelhouse {
# with later OSX. Not necessary for OSX released well after pip 6.0. See: # with later OSX. Not necessary for OSX released well after pip 6.0. See:
# https://github.com/MacPython/wiki/wiki/Spinning-wheels#question-will-pip-give-me-a-broken-wheel # https://github.com/MacPython/wiki/wiki/Spinning-wheels#question-will-pip-give-me-a-broken-wheel
local MAC_ARCH=$(mac_arch_for_pyosx_version $MB_PYTHON_OSX_VER) local MAC_ARCH=$(mac_arch_for_pyosx_version $MB_PYTHON_OSX_VER)
if [ "$MAC_ARCH" == "x86_x64" ]; then if [[ "$MAC_ARCH" == "x86_x64" ]]; then
delocate-addplat --rm-orig -p macosx_10_10_x86_64 $wheelhouse/*.whl delocate-addplat --rm-orig -p macosx_10_10_x86_64 $wheelhouse/*.whl
elif [ "$MAC_ARCH" == "intel" ]; then elif [[ "$MAC_ARCH" == "intel" ]]; then
delocate-addplat --rm-orig -x 10_9 -x 10_10 $wheelhouse/*.whl delocate-addplat --rm-orig -x 10_9 -x 10_10 $wheelhouse/*.whl
else else
echo "invalid ARCH = '$MAC_ARCH'" echo "invalid ARCH = '$MAC_ARCH'"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment