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

Commit 978fdc2

Browse files
robbuckleyjreback
authored andcommitted
add mac wheels for 10.9 / 64b only (#47)
* reinstate multibuild PR224, this time with config.sh back compatible with older multibuilds * make 10.9 builds the default
1 parent 28597df commit 978fdc2

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ env:
55
- BUILD_COMMIT=master
66
- PLAT=x86_64
77
- UNICODE_WIDTH=32
8+
- MB_PYTHON_OSX_VER=10.9
89
- NP_BUILD_DEP="numpy==1.13.3"
910
- NP_TEST_DEP="numpy==1.13.3"
1011
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
@@ -45,16 +46,15 @@ matrix:
4546
language: generic
4647
env:
4748
- MB_PYTHON_VERSION=3.5
49+
- MB_PYTHON_OSX_VER=10.6 # no python.org 10.9 builds for 3.5
4850
- os: osx
4951
language: generic
5052
env:
5153
- MB_PYTHON_VERSION=3.6
52-
- MB_PYTHON_OSX_VER=10.9
5354
- os: osx
5455
language: generic
5556
env:
5657
- MB_PYTHON_VERSION=3.7
57-
- MB_PYTHON_OSX_VER=10.9
5858
- NP_BUILD_DEP="numpy==1.14.5"
5959
- NP_TEST_DEP="numpy==1.14.5"
6060

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)