Commit 5906b35b authored by Rob Buckley's avatar Rob Buckley
Browse files

Merge branch 'cpython-10.9' of https://github.com/radarhere/multibuild into radarhere-cpython-10.9

parents 8605156c 91582ee4
...@@ -45,15 +45,15 @@ matrix: ...@@ -45,15 +45,15 @@ matrix:
- PYTHON_VERSION=2.7 - PYTHON_VERSION=2.7
- TEST_BUILDS=1 - TEST_BUILDS=1
- os: osx - os: osx
language: objective-c
env: env:
- PYTHON_VERSION=2.7 - PYTHON_VERSION=2.7
- VENV=venv - MB_PYTHON_OSX_VER=10.9
- TEST_BUILDS=1
- os: osx - os: osx
language: objective-c
env: env:
- PYTHON_VERSION=2.7 - PYTHON_VERSION=2.7
- MB_PYTHON_OSX_VER=10.9 - VENV=venv
- TEST_BUILDS=1
- os: osx - os: osx
env: env:
- PYTHON_VERSION=3.4 - PYTHON_VERSION=3.4
......
...@@ -64,9 +64,9 @@ shell scripts listed above are available for your build and test. ...@@ -64,9 +64,9 @@ shell scripts listed above are available for your build and test.
OS X builds may be targetted either at macOS 10.6+ OS X builds may be targetted either at macOS 10.6+
(dual arch 64 / 32 bit) or macOS 10.9+ (64b only). These depend on the (dual arch 64 / 32 bit) or macOS 10.9+ (64b only). These depend on the
corresponding build of python from https://www.python.org/downloads/mac-osx/. corresponding build of python from https://www.python.org/downloads/mac-osx/.
At the time of writing, 10.9+ / 64 bit builds are supported for python At the time of writing, 10.9+ / 64 bit builds are supported for Python
versions 3.6.5 / 2.7.15 and above. If you want to build for an older version versions 3.6.5 / 2.7.15 and above. If you want to build for an older version
of python, you'll have to target 10.6+ / dual arch. of Python, you'll have to target 10.6+ / dual arch.
The ``build_wheel`` function builds the wheel, and the ``install_run`` The ``build_wheel`` function builds the wheel, and the ``install_run``
function installs the wheel and tests it. Look in ``common_utils.sh`` for function installs the wheel and tests it. Look in ``common_utils.sh`` for
......
...@@ -119,12 +119,13 @@ function pyinst_ext_for_version { ...@@ -119,12 +119,13 @@ function pyinst_ext_for_version {
function pyinst_fname_for_version { function pyinst_fname_for_version {
# echo filename for OSX installer file given Python and minimum # echo filename for OSX installer file given Python and minimum
# macosx versions # macOS versions
# Parameters # Parameters
# $py_version (python version in major.minor.extra format) # $py_version (Python version in major.minor.extra format)
# $py_osx_ver: {major.minor | not defined} # $py_osx_ver: {major.minor | not defined}
# if defined, the macosx version that python is built for, e.g. # if defined, the macOS version that Python is built for, e.g.
# "10.6" or "10.9", if not defined, uses the default MACPYTHON_DEFAULT_OSX # "10.6" or "10.9", if not defined, uses the default
# MACPYTHON_DEFAULT_OSX
# Note: this is the version the Python is built for, and hence # Note: this is the version the Python is built for, and hence
# the min version supported, NOT the version of the current system # the min version supported, NOT the version of the current system
local py_version=$1 local py_version=$1
...@@ -156,11 +157,11 @@ function get_macpython_osx_ver { ...@@ -156,11 +157,11 @@ function get_macpython_osx_ver {
} }
function mac_cpython_arch_for_osx_ver { function mac_cpython_arch_for_osx_ver {
# echo arch (intel or x86_64) for cpython python.org builds targetted for # echo arch (intel or x86_64) for CPython python.org builds targetted for
# the given minimum macOS version # the given minimum macOS version
# Parameters # Parameters
# $py_osx_ver (major.minor | not defined} # $py_osx_ver (major.minor | not defined}
# the macosx version that python is built for, e.g. # the macosx version that Python is built for, e.g.
# "10.6" or "10.9", or MB_PYTHON_OSX_VER if undefined # "10.6" or "10.9", or MB_PYTHON_OSX_VER if undefined
# #
py_osx_ver=${1:-$MB_PYTHON_OSX_VER} py_osx_ver=${1:-$MB_PYTHON_OSX_VER}
...@@ -180,8 +181,8 @@ function install_macpython { ...@@ -180,8 +181,8 @@ function install_macpython {
# $version : [implementation-]major[.minor[.patch]] # $version : [implementation-]major[.minor[.patch]]
# The Python implementation to install, e.g. "3.6" or "pypy-5.4" # The Python implementation to install, e.g. "3.6" or "pypy-5.4"
# $py_osx_ver: {major.minor | not defined} # $py_osx_ver: {major.minor | not defined}
# if defined, the macosx version that cpython is built for, e.g. # if defined, the macOS version that CPython is built for, e.g.
# "10.6" or "10.9". Ignored for pypy # "10.6" or "10.9". Ignored for PyPy
local version=$1 local version=$1
local py_osx_ver=$2 local py_osx_ver=$2
if [[ "$version" =~ pypy-([0-9\.]+) ]]; then if [[ "$version" =~ pypy-([0-9\.]+) ]]; then
...@@ -203,9 +204,9 @@ function install_mac_cpython { ...@@ -203,9 +204,9 @@ function install_mac_cpython {
# "3" or "3.4" or "3.4.1". # "3" or "3.4" or "3.4.1".
# $py_osx_ver # $py_osx_ver
# {major.minor | not defined} # {major.minor | not defined}
# if defined, the macosx version that python is built for, e.g. # if defined, the macOS version that Python is built for, e.g.
# "10.6" or "10.9" # "10.6" or "10.9"
# sets $PYTHON_EXE variable to python executable # sets $PYTHON_EXE variable to Python executable
local py_version=$(fill_pyver $1) local py_version=$(fill_pyver $1)
local py_osx_ver=$2 local py_osx_ver=$2
local py_stripped=$(strip_ver_suffix $py_version) local py_stripped=$(strip_ver_suffix $py_version)
...@@ -318,9 +319,8 @@ function get_macpython_environment { ...@@ -318,9 +319,8 @@ function get_macpython_environment {
# If defined - make virtualenv in this directory, set python / pip # If defined - make virtualenv in this directory, set python / pip
# commands accordingly # commands accordingly
# $py_osx_ver: {major.minor | not defined} # $py_osx_ver: {major.minor | not defined}
# if defined, the macosx version that python is built for, e.g. # if defined, the macOS version that Python is built for, e.g.
# "10.6" or "10.9", if not defined, use the version from the # "10.6" or "10.9", if not defined, use the version from MB_PYTHON_OSX_VER
# environment variable MB_PYTHON_OSX_VER
# #
# Installs Python # Installs Python
# Sets $PYTHON_EXE to path to Python executable # Sets $PYTHON_EXE to path to Python executable
......
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