Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit a062c50

Browse files
committed
add mac wheels for 10.9 / 64b only
* update multibuild to support building osx 10.9 / 64b only wheels * make 10.9 builds the default * move override of pandas MACOSX_DEPLOYEMENT_TARGET from .travis.yml to config.sh
1 parent 98b85e2 commit a062c50

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ env:
55
- BUILD_COMMIT=v0.24.2
66
- PLAT=x86_64
77
- UNICODE_WIDTH=32
8+
- MB_PYTHON_OSX_VER=10.9
89
- NP_BUILD_DEP="numpy==1.12.1"
910
- NP_TEST_DEP="numpy==1.12.1"
1011
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
@@ -62,18 +63,15 @@ matrix:
6263
language: generic
6364
env:
6465
- MB_PYTHON_VERSION=2.7
65-
- MACOSX_DEPLOYMENT_TARGET=10.6 # since pandas PR24274, mac builds default to 10.9
6666
- os: osx
6767
language: generic
6868
env:
6969
- MB_PYTHON_VERSION=3.5
70-
- MACOSX_DEPLOYMENT_TARGET=10.6 # since pandas PR24274, mac builds default to 10.9
70+
- MB_PYTHON_OSX_VER=10.6 # no python.org 10.9 builds for 3.5
7171
- os: osx
7272
language: generic
7373
env:
7474
- MB_PYTHON_VERSION=3.6
75-
- MACOSX_DEPLOYMENT_TARGET=10.6 # since pandas PR24274, mac builds default to 10.9
76-
7775

7876
before_install:
7977
# See:

config.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
function pre_build {
55
# Any stuff that you need to do before you start building the wheels
66
# Runs in the root directory of this repository.
7-
:
7+
if [ -n "$IS_OSX" ]; then
8+
# Override pandas' default minimum MACOSX_DEPLOYEMENT_TARGET=10.9,
9+
# so we can build for older Pythons if we really want to.
10+
# See https://github.com/pandas-dev/pandas/pull/24274
11+
local _plat=$(get_distutils_platform)
12+
if [[ -z $MACOSX_DEPLOYMENT_TARGET && "$_plat" =~ macosx-(10\.[0-9]+)-.* ]]; then
13+
export MACOSX_DEPLOYMENT_TARGET=${BASH_REMATCH[1]}
14+
fi
15+
fi
816
}
917

1018
function build_wheel {

0 commit comments

Comments
 (0)